Skip to content

Commit 8f345e1

Browse files
rscprofytmimi
andauthored
Update src/macros.rs
Co-authored-by: Yacin Tmimi <yacintmimi@gmail.com>
1 parent 5db62f7 commit 8f345e1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/macros.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,7 @@ fn rewrite_macro_inner(
231231
// Format well-known macros which cannot be parsed as a valid AST.
232232
if macro_name == "lazy_static!" && !has_comment {
233233
if let success @ Some(..) = format_lazy_static(context, shape, ts.clone()) {
234-
return (
235-
success,
236-
if original_style != Delimiter::Brace {
237-
Some(Delimiter::Brace)
238-
} else {
239-
None
240-
},
241-
);
234+
return (success, Some(Delimiter::Brace));
242235
}
243236
}
244237

0 commit comments

Comments
 (0)