Skip to content

Commit 358b80f

Browse files
authored
Rename _expr to expr (launchbadge#1264)
1 parent 4986ea2 commit 358b80f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sqlx-macros/src/query/args.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ pub fn quote_args<DB: DatabaseExt>(
7979
use ::sqlx::ty_match::{WrapSameExt as _, MatchBorrowExt as _};
8080

8181
// evaluate the expression only once in case it contains moves
82-
let _expr = ::sqlx::ty_match::dupe_value(#name);
82+
let expr = ::sqlx::ty_match::dupe_value(#name);
8383

84-
// if `_expr` is `Option<T>`, get `Option<$ty>`, otherwise `$ty`
85-
let ty_check = ::sqlx::ty_match::WrapSame::<#param_ty, _>::new(&_expr).wrap_same();
84+
// if `expr` is `Option<T>`, get `Option<$ty>`, otherwise `$ty`
85+
let ty_check = ::sqlx::ty_match::WrapSame::<#param_ty, _>::new(&expr).wrap_same();
8686

87-
// if `_expr` is `&str`, convert `String` to `&str`
88-
let (mut _ty_check, match_borrow) = ::sqlx::ty_match::MatchBorrow::new(ty_check, &_expr);
87+
// if `expr` is `&str`, convert `String` to `&str`
88+
let (mut _ty_check, match_borrow) = ::sqlx::ty_match::MatchBorrow::new(ty_check, &expr);
8989

9090
_ty_check = match_borrow.match_borrow();
9191

0 commit comments

Comments
 (0)