placate rustfmt in rustfmt.

This commit is contained in:
Felix S. Klock II
2022-03-07 16:37:35 -05:00
parent 59d5c74c15
commit 673640d26d
2 changed files with 3 additions and 9 deletions
+1 -7
View File
@@ -113,13 +113,7 @@ pub(crate) fn parse_file_as_module(
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() {
+2 -2
View File
@@ -916,9 +916,9 @@ fn format_mod(
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 => {