Skip to content

Commit

Permalink
Work around mut warning in trace-var
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 29, 2018
1 parent c3e6c32 commit c467aa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/trace-var/trace-var/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl Args {
};
parse_quote! {
let #pat #ty = {
#[allow(unused_mut)]
let #pat = #init;
println!(concat!(stringify!(#ident), " = {:?}"), #ident);
#ident
Expand Down

0 comments on commit c467aa7

Please sign in to comment.