Fix clippy lints
This commit is contained in:
parent
947ceff3e6
commit
154572f6be
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ impl DbExecutor {
|
|||
tracing::debug!(
|
||||
"task took {}ms",
|
||||
Instant::now().duration_since(before).as_secs_f64() / 1000.0
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue