Skip to content

Commit e565123

Browse files
nk9abonander
authored andcommitted
Invert boolean for migrate error message. (#3275)
1 parent d1f180f commit e565123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-macros-core/src/test_attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn expand(args: TokenStream, input: syn::ItemFn) -> crate::Result<TokenStrea
3232

3333
if input.sig.inputs.is_empty() {
3434
if !args.is_empty() {
35-
if cfg!(feature = "migrate") {
35+
if !cfg!(feature = "migrate") {
3636
return Err(syn::Error::new_spanned(
3737
args.first().unwrap(),
3838
"control attributes are not allowed unless \

0 commit comments

Comments
 (0)