about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2022-03-04 17:05:30 -0500
committerFelix S. Klock II <pnkfelix@pnkfx.org>2022-03-04 17:05:30 -0500
commitce301d92f12658edf6fe410d39de445270d1420e (patch)
treeb1635d346185b23d47e23225d67ca89c005fd9ae
parent651f46376aa6bb259c58cbb3debad6e0edce31bf (diff)
downloadrust-ce301d92f12658edf6fe410d39de445270d1420e.tar.gz
rust-ce301d92f12658edf6fe410d39de445270d1420e.zip
Placate tidy in submodule.
-rw-r--r--src/parse/parser.rs8
-rw-r--r--src/visitor.rs5
2 files changed, 11 insertions, 2 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs
index 6983249c15d..ec051d93710 100644
--- a/src/parse/parser.rs
+++ b/src/parse/parser.rs
@@ -113,7 +113,13 @@ impl<'a> Parser<'a> {
         let result = catch_unwind(AssertUnwindSafe(|| {
             let mut parser = new_parser_from_file(sess.inner(), path, Some(span));
             match parser.parse_mod(&TokenKind::Eof) {
-                Ok((a, i, ast::ModSpans { inner_span, inject_use_span: _ })) => Some((a, i, inner_span)),
+                Ok((a,
+                    i,
+                    ast::ModSpans {
+                        inner_span,
+                        inject_use_span: _
+                    }
+                )) => Some((a, i, inner_span)),
                 Err(mut e) => {
                     e.emit();
                     if sess.can_reset_errors() {
diff --git a/src/visitor.rs b/src/visitor.rs
index dec977e98ca..dcf096294f1 100644
--- a/src/visitor.rs
+++ b/src/visitor.rs
@@ -916,7 +916,10 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
         self.push_str(&ident_str);
 
         if let ast::ModKind::Loaded(ref items, ast::Inline::Yes, ref spans) = mod_kind {
-            let ast::ModSpans{ inner_span, inject_use_span: _ } = *spans;
+            let ast::ModSpans{
+                inner_span,
+                inject_use_span: _
+            } = *spans;
             match self.config.brace_style() {
                 BraceStyle::AlwaysNextLine => {
                     let indent_str = self.block_indent.to_string_with_newline(self.config);