From 8ffac3802c31f73457e2541bb47c012bc377e967 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Thu, 8 Feb 2024 20:32:45 +0100 Subject: [PATCH] fixup clippy --- crates/teloxide-core/src/errors.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/teloxide-core/src/errors.rs b/crates/teloxide-core/src/errors.rs index 7e07dc8b..08d140e8 100644 --- a/crates/teloxide-core/src/errors.rs +++ b/crates/teloxide-core/src/errors.rs @@ -144,12 +144,14 @@ macro_rules! impl_api_error { } }; (@de $value:ident, $variant:ident ($var_inner:ty), $val:literal, $block:expr) => { + #[allow(clippy::redundant_closure_call)] match $block($value) { Some(data) => return Ok(Self::Value::$variant(data)), _ => {} } }; (@de $value:ident, $variant:ident, $val:literal, $block:expr) => { + #[allow(clippy::redundant_closure_call)] if $block($value) { return Ok(Self::Value::$variant); }