File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
tests/source/configs/format_brace_macros Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -233,9 +233,11 @@ fn rewrite_macro_inner(
233233 }
234234
235235 if Delimiter :: Brace == style && context. config . format_brace_macros ( ) {
236- if let ast:: MacArgs :: Delimited ( span, ..) = * mac. args {
237- ts = TokenStream :: new ( vec ! [ TokenTree :: Delimited ( span, Delimiter :: Brace , ts) ] ) ;
238- }
236+ ts = TokenStream :: new ( vec ! [ TokenTree :: Delimited (
237+ mac. args. dspan,
238+ Delimiter :: Brace ,
239+ ts,
240+ ) ] ) ;
239241 }
240242
241243 let ParsedMacroArgs {
Original file line number Diff line number Diff line change @@ -85,8 +85,7 @@ macro_rules! impl_from_vector {
8585 */
8686
8787 test_if! {
88- $test_tt:
89- interpolate_idents! {
88+ $test_tt: interpolate_idents! {
9089 mod [ $id _from_ $source] {
9190 use super :: * ;
9291 #[ test]
You can’t perform that action at this time.
0 commit comments