about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2022-03-07 16:37:35 -0500
committerFelix S. Klock II <pnkfelix@pnkfx.org>2022-03-07 16:37:35 -0500
commit003eaf8fe270cb8f6915ed03ad23f4af0212d607 (patch)
tree1fa4e744e420c7486ef0f3f5dd83d699daf8c64f
parentce301d92f12658edf6fe410d39de445270d1420e (diff)
downloadrust-003eaf8fe270cb8f6915ed03ad23f4af0212d607.tar.gz
rust-003eaf8fe270cb8f6915ed03ad23f4af0212d607.zip
placate rustfmt in rustfmt.
-rw-r--r--src/parse/parser.rs8
-rw-r--r--src/visitor.rs4
2 files changed, 3 insertions, 9 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs
index ec051d93710..268c72649a6 100644
--- a/src/parse/parser.rs
+++ b/src/parse/parser.rs
@@ -113,13 +113,7 @@ 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, spans)) => Some((a, i, spans.inner_span)),
                 Err(mut e) => {
                     e.emit();
                     if sess.can_reset_errors() {
diff --git a/src/visitor.rs b/src/visitor.rs
index dcf096294f1..3ebfa551d1c 100644
--- a/src/visitor.rs
+++ b/src/visitor.rs
@@ -916,9 +916,9 @@ 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{
+            let ast::ModSpans {
                 inner_span,
-                inject_use_span: _
+                inject_use_span: _,
             } = *spans;
             match self.config.brace_style() {
                 BraceStyle::AlwaysNextLine => {