1
Fork 0

Enable unused_parens for match arms

This commit is contained in:
wcampbell 2022-08-03 00:00:04 -04:00
parent c9e134e1b6
commit 8dd44f1af4
6 changed files with 58 additions and 3 deletions

View file

@ -377,7 +377,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
fn print_string(&mut self, st: &str, style: ast::StrStyle) {
let st = match style {
ast::StrStyle::Cooked => (format!("\"{}\"", st.escape_debug())),
ast::StrStyle::Cooked => format!("\"{}\"", st.escape_debug()),
ast::StrStyle::Raw(n) => {
format!("r{delim}\"{string}\"{delim}", delim = "#".repeat(n as usize), string = st)
}