about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTyler Lanphear <animemachine13@gmail.com>2020-01-23 00:42:35 -0500
committerTyler Lanphear <animemachine13@gmail.com>2020-01-23 00:42:35 -0500
commit6f7e89ffe3824be03ea75a602dc46e711d16cb25 (patch)
treef3c458f4d0fa08ba12d7b5d31a8408999813e65e /src/libsyntax
parente23dd6687f7677a715765bff1fe5e63b906cb96b (diff)
downloadrust-6f7e89ffe3824be03ea75a602dc46e711d16cb25.tar.gz
rust-6f7e89ffe3824be03ea75a602dc46e711d16cb25.zip
unused-parens: implement for block return values
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/print/pprust.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index f0ef33e2f62..d6f18fda8b2 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -548,11 +548,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
         let st = match style {
             ast::StrStyle::Cooked => (format!("\"{}\"", st.escape_debug())),
             ast::StrStyle::Raw(n) => {
-                (format!(
-                    "r{delim}\"{string}\"{delim}",
-                    delim = "#".repeat(n as usize),
-                    string = st
-                ))
+                format!("r{delim}\"{string}\"{delim}", delim = "#".repeat(n as usize), string = st)
             }
         };
         self.word(st)