Skip to content

Commit 840638e

Browse files
committed
f macro
1 parent dceae89 commit 840638e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ pub fn xtest(attrs: TokenStream, item: TokenStream) -> TokenStream {
340340
let expanded = match input {
341341
Item::Mod(item_mod) => {
342342
let cfg = if attrs.is_empty() {
343-
quote! { #[cfg_attr(test, test)] }
343+
quote! { #[cfg(test)] }
344344
} else {
345-
quote! { #[cfg_attr(test, test)] #[cfg(any(test, #attrs))] }
345+
quote! { #[cfg(any(test, #attrs))] }
346346
};
347347
quote! {
348348
#cfg

0 commit comments

Comments
 (0)