Satisfy nightly clippy

This commit is contained in:
Shoyu Vanilla 2024-10-15 00:49:12 +09:00
parent ad1f84d80f
commit 7e3426e7df

View file

@ -33,7 +33,10 @@ pub(crate) fn dump_tokens(input_name: impl ToString, tokens: TokenStream) -> Tok
rustfmt.wait_with_output() rustfmt.wait_with_output()
}) })
.map(|output| eprintln!("{}", String::from_utf8_lossy(&output.stdout))) .map(|output| eprintln!("{}", String::from_utf8_lossy(&output.stdout)))
.or_else(|_| Ok(eprintln!("{token_string}"))); .or_else(|_| {
eprintln!("{token_string}");
Ok(())
});
} }
tokens tokens