We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e0c4e commit 0089daaCopy full SHA for 0089daa
src/lib.rs
@@ -567,7 +567,10 @@ pub fn test(args: TokenStream, input: TokenStream) -> TokenStream {
567
let async_cond =
568
match_nested_meta_to_str_lit!(list.nested.first().unwrap());
569
let async_test = match_nested_meta_to_str_lit!(list.nested.last().unwrap());
570
- let attr = quote!( #[cfg_attr(#async_cond, maybe_async::must_be_async, #async_test)] );
+ let attr = quote!(
571
+ #[cfg(#async_cond)]
572
+ #[cfg_attr(#async_cond, maybe_async::must_be_async, #async_test)]
573
+ );
574
async_token.push(attr);
575
} else {
576
let msg = format!(
0 commit comments