Skip to content

Commit 9456e54

Browse files
committed
Omit Self: 'async_trait bound in impl when not needed by signature
1 parent b77d0d5 commit 9456e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn expand(input: &mut Item, is_local: bool) {
9999
ImplItem::Fn(method) if method.sig.asyncness.is_some() => {
100100
let sig = &mut method.sig;
101101
let block = &mut method.block;
102-
let has_self = has_self_in_sig(sig) || has_self_in_block(block);
102+
let has_self = has_self_in_sig(sig);
103103
transform_block(context, sig, block);
104104
transform_sig(context, sig, has_self, false, is_local);
105105
method.attrs.push(lint_suppress_with_body());

0 commit comments

Comments
 (0)