mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
Change to cfg!(not()) (#3275)
This commit is contained in:
parent
e565123ca3
commit
1e1697f655
1 changed files with 1 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue