Qualify Itertools::intersperse to fix warning

This commit is contained in:
Sijmen 2023-12-01 03:39:57 +01:00
parent 99ea540db8
commit ce5b4fb2ac
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -145,13 +145,13 @@ impl Cri {
} }
fn handle_quit_command(&self, tokens: &mut SplitWhitespace<'_>) { fn handle_quit_command(&self, tokens: &mut SplitWhitespace<'_>) {
let reason: String = tokens.intersperse(" ").collect(); let reason: String = Itertools::intersperse(tokens, " ").collect();
let reason = if reason.trim().is_empty() { let reason = if reason.trim().is_empty() {
None None
} else { } else {
Some(reason) Some(reason)
}; };
self.input_tx self.input_tx
.borrow() .borrow()
.send(IrcCommand::QUIT(reason).into()) .send(IrcCommand::QUIT(reason).into())