From ce5b4fb2ac7d5f4322ce1c6ea5012eefe9b7256d Mon Sep 17 00:00:00 2001 From: Sijmen Date: Fri, 1 Dec 2023 03:39:57 +0100 Subject: [PATCH] Qualify Itertools::intersperse to fix warning --- src/cri.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cri.rs b/src/cri.rs index bf70d5c..9931225 100644 --- a/src/cri.rs +++ b/src/cri.rs @@ -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())