Skip to content

Commit 9a7bb72

Browse files
committed
Suppress used_underscore_binding on wrapper function
1 parent df8056a commit 9a7bb72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/expand.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub fn expand(input: &mut Item, is_local: bool) {
7272
if let Some(block) = block {
7373
has_self |= has_self_in_block(block);
7474
transform_block(context, sig, block, has_self, is_local);
75+
method.attrs.push(parse_quote!(#[allow(clippy::used_underscore_binding)]));
7576
}
7677
let has_default = method.default.is_some();
7778
transform_sig(context, sig, has_self, has_default, is_local);
@@ -101,6 +102,7 @@ pub fn expand(input: &mut Item, is_local: bool) {
101102
let has_self = has_self_in_sig(sig) || has_self_in_block(block);
102103
transform_block(context, sig, block, has_self, is_local);
103104
transform_sig(context, sig, has_self, false, is_local);
105+
method.attrs.push(parse_quote!(#[allow(clippy::used_underscore_binding)]));
104106
}
105107
}
106108
}

0 commit comments

Comments
 (0)