From d7c4e94cbed8cf7821658437225f0768a0e4ff4c Mon Sep 17 00:00:00 2001 From: Mira Ressel Date: Mon, 19 Jun 2023 16:43:15 +0200 Subject: [PATCH] chore: ignore the new let_with_type_underscore lint --- frame/benchmarking/src/v1.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frame/benchmarking/src/v1.rs b/frame/benchmarking/src/v1.rs index be6dc393cbce3..9b5942c2c7022 100644 --- a/frame/benchmarking/src/v1.rs +++ b/frame/benchmarking/src/v1.rs @@ -757,6 +757,7 @@ macro_rules! benchmark_backend { } }; // mutation arm to look after `let _ =` + // the `: _` syntax is used below as a workaround to avoid an infinite macro expansion loop in clippy ( { $( $instance:ident: $instance_bound:tt )? } $name:ident @@ -776,6 +777,7 @@ macro_rules! benchmark_backend { { $( $parsed )* } { $eval } { + #[allow(clippy::let_with_type_underscore)] let $pre_id : _ = $pre_ex; $( $rest )* }