From 81b4c248a1bb04de261e648da9b6644fefbb3cfa Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Wed, 4 Oct 2023 22:01:56 +0400 Subject: [PATCH] Silence clippy --- crates/teloxide-core/src/adaptors/throttle/worker.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/teloxide-core/src/adaptors/throttle/worker.rs b/crates/teloxide-core/src/adaptors/throttle/worker.rs index 5e1bc116..26d08493 100644 --- a/crates/teloxide-core/src/adaptors/throttle/worker.rs +++ b/crates/teloxide-core/src/adaptors/throttle/worker.rs @@ -297,6 +297,8 @@ fn answer_info(rx: &mut mpsc::Receiver, limits: &mut Limits) { } } +// FIXME: https://github.com/rust-lang/rust-clippy/issues/11610 +#[allow(clippy::needless_pass_by_ref_mut)] async fn freeze( rx: &mut mpsc::Receiver, mut slow_mode: Option<&mut HashMap>,