Skip to content

Commit 09590ef

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

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
@@ -249,8 +249,7 @@ fn rewrite_macro_inner(
249249
};
250250

251251
if !arg_vec.is_empty() && arg_vec.iter().all(MacroArg::is_item) {
252-
return (
253-
rewrite_macro_with_items(
252+
let rewrite = rewrite_macro_with_items(
254253
context,
255254
&arg_vec,
256255
&macro_name,
@@ -259,12 +258,8 @@ fn rewrite_macro_inner(
259258
original_style,
260259
position,
261260
mac.span(),
262-
),
263-
if original_style != style {
264-
Some(style)
265-
} else {
266-
None
267-
},
261+
);
262+
return (rewrite, Some(style));
268263
);
269264
}
270265

0 commit comments

Comments
 (0)