Skip to content

Commit

Permalink
rustfmt has opinions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed May 30, 2024
1 parent 0ad0be8 commit b9ab8fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/salsa-2022-macros/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")));
}

Expand Down

0 comments on commit b9ab8fc

Please sign in to comment.