Change to cfg!(not()) (#3275)

This commit is contained in:
Nick Kocharhook 2024-07-10 17:42:50 +01:00 committed by Austin Bonander
parent e565123ca3
commit 1e1697f655

View file

@ -32,7 +32,7 @@ pub fn expand(args: TokenStream, input: syn::ItemFn) -> crate::Result<TokenStrea
if input.sig.inputs.is_empty() {
if !args.is_empty() {
if !cfg!(feature = "migrate") {
if cfg!(not(feature = "migrate")) {
return Err(syn::Error::new_spanned(
args.first().unwrap(),
"control attributes are not allowed unless \