Invert boolean for migrate error message. (#3275)

This commit is contained in:
Nick Kocharhook 2024-06-09 01:26:22 +01:00 committed by Austin Bonander
parent d1f180fbc5
commit e565123ca3

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!(feature = "migrate") {
return Err(syn::Error::new_spanned(
args.first().unwrap(),
"control attributes are not allowed unless \