Skip to content

Commit

Permalink
Fix: Issue tikv#112
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Van de Vyver <[email protected]>
  • Loading branch information
taqtiqa-mark committed Apr 28, 2022
1 parent 29e1f78 commit 07a0f52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion minitrace-macro/src/trace/lower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ fn transform_sig(sig: &mut syn::Signature, has_self: bool, is_local: bool) {
syn::FnArg::Typed(arg) => {
if let syn::Pat::Ident(ident) = &mut *arg.pat {
ident.by_ref = None;
ident.mutability = None;
//ident.mutability = None;
} else {
let positional = positional_arg(i, &arg.pat);
let m = mut_pat(&mut arg.pat);
Expand Down
4 changes: 2 additions & 2 deletions minitrace-macro/tests/trace/ui/ok/004-has-name-mut-async.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use minitrace::trace;

#[trace("test_span")]
#[allow(unused_mut)]
#[trace(name = "test_span")]
async fn f(mut a: u32) -> u32 {
a = a + 1;
a
}

Expand Down

0 comments on commit 07a0f52

Please sign in to comment.