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>,