Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
chore: ignore the new let_with_type_underscore lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mira Ressel committed Jun 19, 2023
1 parent 3c4af2f commit d7c4e94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frame/benchmarking/src/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -776,6 +777,7 @@ macro_rules! benchmark_backend {
{ $( $parsed )* }
{ $eval }
{
#[allow(clippy::let_with_type_underscore)]
let $pre_id : _ = $pre_ex;
$( $rest )*
}
Expand Down

0 comments on commit d7c4e94

Please sign in to comment.