Placate tidy in submodule.
This commit is contained in:
parent
651f46376a
commit
ce301d92f1
@ -113,7 +113,13 @@ 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,
|
||||
ast::ModSpans {
|
||||
inner_span,
|
||||
inject_use_span: _
|
||||
}
|
||||
)) => Some((a, i, inner_span)),
|
||||
Err(mut e) => {
|
||||
e.emit();
|
||||
if sess.can_reset_errors() {
|
||||
|
@ -916,7 +916,10 @@ 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{ inner_span, inject_use_span: _ } = *spans;
|
||||
let ast::ModSpans{
|
||||
inner_span,
|
||||
inject_use_span: _
|
||||
} = *spans;
|
||||
match self.config.brace_style() {
|
||||
BraceStyle::AlwaysNextLine => {
|
||||
let indent_str = self.block_indent.to_string_with_newline(self.config);
|
||||
|
Loading…
x
Reference in New Issue
Block a user