Skip to content

Commit

Permalink
Merge pull request #595 from gvozdvmozgu/fix-nightly-lint
Browse files Browse the repository at this point in the history
fix new nightly lint: `clippy::unit_arg`
  • Loading branch information
MichaReiser authored Oct 15, 2024
2 parents 0099b18 + b074f88 commit cccb7a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/salsa-macros/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ pub(crate) fn dump_tokens(input_name: impl ToString, tokens: TokenStream) -> Tok
rustfmt.wait_with_output()
})
.map(|output| eprintln!("{}", String::from_utf8_lossy(&output.stdout)))
.or_else(|_| Ok(eprintln!("{token_string}")));
.or_else(|_| {
eprintln!("{token_string}");
Ok(())
});
}

tokens
Expand Down

0 comments on commit cccb7a5

Please sign in to comment.