Skip to content

Commit e718546

Browse files
committed
Format
1 parent eecf33b commit e718546

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/macros.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,8 @@ pub fn rewrite_macro_def(
323323
parsed_def.branches.iter(),
324324
"}",
325325
";",
326-
|branch| {
327-
branch.span.lo()
328-
},
329-
|branch| {
330-
branch.span.hi()
331-
},
326+
|branch| branch.span.lo(),
327+
|branch| branch.span.hi(),
332328
|branch| {
333329
// Only attempt to format function-like macros.
334330
if branch.args_paren_kind != DelimToken::Paren {
@@ -416,7 +412,7 @@ pub fn rewrite_macro_def(
416412
},
417413
context.codemap.span_after(span, "{"),
418414
span.hi(),
419-
false
415+
false,
420416
).collect::<Vec<_>>();
421417

422418
let arm_shape = shape
@@ -798,7 +794,10 @@ impl MacroParser {
798794
TokenTree::Token(..) => return None,
799795
TokenTree::Delimited(sp, _) => {
800796
let data = sp.data();
801-
(data.hi, Span::new(data.lo + BytePos(1), data.hi - BytePos(1), data.ctxt))
797+
(
798+
data.hi,
799+
Span::new(data.lo + BytePos(1), data.hi - BytePos(1), data.ctxt),
800+
)
802801
}
803802
};
804803
if let Some(TokenTree::Token(sp, Token::Semi)) = self.toks.look_ahead(0) {

0 commit comments

Comments
 (0)