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 dceae89 commit 840638eCopy full SHA for 840638e
lightning-macros/src/lib.rs
@@ -340,9 +340,9 @@ pub fn xtest(attrs: TokenStream, item: TokenStream) -> TokenStream {
340
let expanded = match input {
341
Item::Mod(item_mod) => {
342
let cfg = if attrs.is_empty() {
343
- quote! { #[cfg_attr(test, test)] }
+ quote! { #[cfg(test)] }
344
} else {
345
- quote! { #[cfg_attr(test, test)] #[cfg(any(test, #attrs))] }
+ quote! { #[cfg(any(test, #attrs))] }
346
};
347
quote! {
348
#cfg
0 commit comments