mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
Invert boolean for migrate
error message. (#3275)
This commit is contained in:
parent
d1f180fbc5
commit
e565123ca3
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user