rustfmt has opinions

This commit is contained in:
Niko Matsakis 2024-05-30 08:46:15 -04:00
parent 0ad0be8095
commit b9ab8fcebd

View file

@ -31,7 +31,8 @@ pub(crate) fn dump_tokens(input_name: impl ToString, tokens: TokenStream) -> Tok
.unwrap()
.write_all(token_string.as_bytes())?;
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}")));
}