Skip to content

Commit 571af9d

Browse files
committed
Format
1 parent bc91854 commit 571af9d

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 {
@@ -419,7 +415,7 @@ pub fn rewrite_macro_def(
419415
},
420416
context.codemap.span_after(span, "{"),
421417
span.hi(),
422-
false
418+
false,
423419
).collect::<Vec<_>>();
424420

425421
let arm_shape = shape
@@ -804,7 +800,10 @@ impl MacroParser {
804800
TokenTree::Token(..) => return None,
805801
TokenTree::Delimited(sp, _) => {
806802
let data = sp.data();
807-
(data.hi, Span::new(data.lo + BytePos(1), data.hi - BytePos(1), data.ctxt))
803+
(
804+
data.hi,
805+
Span::new(data.lo + BytePos(1), data.hi - BytePos(1), data.ctxt),
806+
)
808807
}
809808
};
810809
if let Some(TokenTree::Token(sp, Token::Semi)) = self.toks.look_ahead(0) {

0 commit comments

Comments
 (0)