about summary refs log tree commit diff
path: root/src/libsyntax/print/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/print/helpers.rs')
-rw-r--r--src/libsyntax/print/helpers.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libsyntax/print/helpers.rs b/src/libsyntax/print/helpers.rs
index 3449e07f456..88942cb7fd6 100644
--- a/src/libsyntax/print/helpers.rs
+++ b/src/libsyntax/print/helpers.rs
@@ -1,5 +1,5 @@
-use std::borrow::Cow;
 use crate::print::pp::Printer;
+use std::borrow::Cow;
 
 impl Printer {
     pub fn word_space<W: Into<Cow<'static, str>>>(&mut self, w: W) {
@@ -22,10 +22,14 @@ impl Printer {
     }
 
     pub fn space_if_not_bol(&mut self) {
-        if !self.is_beginning_of_line() { self.space(); }
+        if !self.is_beginning_of_line() {
+            self.space();
+        }
     }
 
-    pub fn nbsp(&mut self) { self.word(" ") }
+    pub fn nbsp(&mut self) {
+        self.word(" ")
+    }
 
     pub fn word_nbsp<S: Into<Cow<'static, str>>>(&mut self, w: S) {
         self.word(w);