Skip to content

Commit 003eaf8

Browse files
committed
placate rustfmt in rustfmt.
1 parent ce301d9 commit 003eaf8

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/parse/parser.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,7 @@ impl<'a> Parser<'a> {
113113
let result = catch_unwind(AssertUnwindSafe(|| {
114114
let mut parser = new_parser_from_file(sess.inner(), path, Some(span));
115115
match parser.parse_mod(&TokenKind::Eof) {
116-
Ok((a,
117-
i,
118-
ast::ModSpans {
119-
inner_span,
120-
inject_use_span: _
121-
}
122-
)) => Some((a, i, inner_span)),
116+
Ok((a, i, spans)) => Some((a, i, spans.inner_span)),
123117
Err(mut e) => {
124118
e.emit();
125119
if sess.can_reset_errors() {

src/visitor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,9 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
916916
self.push_str(&ident_str);
917917

918918
if let ast::ModKind::Loaded(ref items, ast::Inline::Yes, ref spans) = mod_kind {
919-
let ast::ModSpans{
919+
let ast::ModSpans {
920920
inner_span,
921-
inject_use_span: _
921+
inject_use_span: _,
922922
} = *spans;
923923
match self.config.brace_style() {
924924
BraceStyle::AlwaysNextLine => {

0 commit comments

Comments
 (0)