Skip to content

Commit a0735e5

Browse files
rscprofytmimi
authored andcommitted
Update src/macros.rs
Co-authored-by: Yacin Tmimi <yacintmimi@gmail.com>
1 parent 7c3071c commit a0735e5

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/macros.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ fn rewrite_macro_inner(
258258
};
259259

260260
if !arg_vec.is_empty() && arg_vec.iter().all(MacroArg::is_item) {
261-
return (
262-
rewrite_macro_with_items(
261+
let rewrite = rewrite_macro_with_items(
263262
context,
264263
&arg_vec,
265264
&macro_name,
@@ -268,12 +267,8 @@ fn rewrite_macro_inner(
268267
original_style,
269268
position,
270269
mac.span(),
271-
),
272-
if original_style != style {
273-
Some(style)
274-
} else {
275-
None
276-
},
270+
);
271+
return (rewrite, Some(style));
277272
);
278273
}
279274

0 commit comments

Comments
 (0)