Qualify Itertools::intersperse to fix warning
This commit is contained in:
parent
99ea540db8
commit
ce5b4fb2ac
1 changed files with 2 additions and 2 deletions
|
@ -145,13 +145,13 @@ impl Cri {
|
|||
}
|
||||
|
||||
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() {
|
||||
None
|
||||
} else {
|
||||
Some(reason)
|
||||
};
|
||||
|
||||
|
||||
self.input_tx
|
||||
.borrow()
|
||||
.send(IrcCommand::QUIT(reason).into())
|
||||
|
|
Loading…
Reference in a new issue