Skip to content

Commit

Permalink
Omit Self: 'async_trait bound in impl when not needed by signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 6, 2025
1 parent b77d0d5 commit 9456e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub fn expand(input: &mut Item, is_local: bool) {
ImplItem::Fn(method) if method.sig.asyncness.is_some() => {
let sig = &mut method.sig;
let block = &mut method.block;
let has_self = has_self_in_sig(sig) || has_self_in_block(block);
let has_self = has_self_in_sig(sig);
transform_block(context, sig, block);
transform_sig(context, sig, has_self, false, is_local);
method.attrs.push(lint_suppress_with_body());
Expand Down

0 comments on commit 9456e54

Please sign in to comment.