mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 06:16:06 +00:00
placate rustfmt in rustfmt.
This commit is contained in:
parent
59d5c74c15
commit
673640d26d
@ -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() {
|
||||
|
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user