Skip to content

Commit

Permalink
placate rustfmt in rustfmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Mar 7, 2022
1 parent ce301d9 commit 003eaf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions src/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 003eaf8

Please sign in to comment.