Skip to content

Commit 819d611

Browse files
committed
Fix: #[trace] async fn a(mut b)
Close issue #112. Per the comment of @andylokandy this appears to be a residual carried over from the async-trait crate code. Signed-off-by: Mark Van de Vyver <[email protected]>
1 parent ede1ec5 commit 819d611

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

minitrace-macro/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ fn transform_sig(sig: &mut Signature, has_self: bool, is_local: bool) {
265265
FnArg::Typed(arg) => {
266266
if let Pat::Ident(ident) = &mut *arg.pat {
267267
ident.by_ref = None;
268-
ident.mutability = None;
269268
} else {
270269
let positional = positional_arg(i, &arg.pat);
271270
let m = mut_pat(&mut arg.pat);

0 commit comments

Comments
 (0)