mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
Rename _expr to expr (#1264)
This commit is contained in:
parent
4986ea2e59
commit
358b80f62e
1 changed files with 5 additions and 5 deletions
|
@ -79,13 +79,13 @@ pub fn quote_args<DB: DatabaseExt>(
|
|||
use ::sqlx::ty_match::{WrapSameExt as _, MatchBorrowExt as _};
|
||||
|
||||
// evaluate the expression only once in case it contains moves
|
||||
let _expr = ::sqlx::ty_match::dupe_value(#name);
|
||||
let expr = ::sqlx::ty_match::dupe_value(#name);
|
||||
|
||||
// if `_expr` is `Option<T>`, get `Option<$ty>`, otherwise `$ty`
|
||||
let ty_check = ::sqlx::ty_match::WrapSame::<#param_ty, _>::new(&_expr).wrap_same();
|
||||
// if `expr` is `Option<T>`, get `Option<$ty>`, otherwise `$ty`
|
||||
let ty_check = ::sqlx::ty_match::WrapSame::<#param_ty, _>::new(&expr).wrap_same();
|
||||
|
||||
// if `_expr` is `&str`, convert `String` to `&str`
|
||||
let (mut _ty_check, match_borrow) = ::sqlx::ty_match::MatchBorrow::new(ty_check, &_expr);
|
||||
// if `expr` is `&str`, convert `String` to `&str`
|
||||
let (mut _ty_check, match_borrow) = ::sqlx::ty_match::MatchBorrow::new(ty_check, &expr);
|
||||
|
||||
_ty_check = match_borrow.match_borrow();
|
||||
|
||||
|
|
Loading…
Reference in a new issue