Skip to content

Commit 4e00ee0

Browse files
abonandermehcode
authored andcommitted
fix(macros): resolve clippy lint warning
cc rust-lang/rust-clippy#5849 Signed-off-by: Austin Bonander <austin@launchbadge.com>
1 parent bd1d9f4 commit 4e00ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-macros/src/query/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn quote_args<DB: DatabaseExt>(
2929
let arg_expr = input.arg_exprs.iter().cloned().map(strip_wildcard);
3030

3131
let arg_bindings = quote! {
32-
#(let ref #arg_name = #arg_expr;)*
32+
#(let #arg_name = &(#arg_expr);)*
3333
};
3434

3535
let args_check = match info.parameters() {

0 commit comments

Comments
 (0)