Fix clippy lints

This commit is contained in:
Yash Karandikar 2022-07-28 11:39:05 -05:00 committed by lemonsh
parent 947ceff3e6
commit 154572f6be
3 changed files with 4 additions and 3 deletions

View File

@ -116,7 +116,7 @@ impl<SF: Fn(String, String) -> anyhow::Result<()>> Bot<SF> {
_cancel_handle: mpsc::Sender<()>,
) {
if let Err(e) = self.handle_message_inner(&origin, &author, &content).await {
let _err = (self.sendmsg)(origin.into(), format!("Error: {}", e));
let _err = (self.sendmsg)(origin, format!("Error: {}", e));
}
}
}

View File

@ -88,7 +88,7 @@ impl DbExecutor {
tracing::debug!(
"task took {}ms",
Instant::now().duration_since(before).as_secs_f64() / 1000.0
)
);
}
}

View File

@ -1,4 +1,5 @@
#![allow(clippy::module_name_repetitions)]
#![warn(clippy::pedantic)]
#![allow(clippy::module_name_repetitions, clippy::too_many_lines)]
use fancy_regex::Regex;
use std::str::FromStr;