mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-23 10:38:57 +00:00
fix: get MatchBorrow type check working for references 3 deep
This commit is contained in:
@@ -83,6 +83,7 @@ pub fn quote_args<DB: DatabaseExt>(
|
||||
|
||||
// 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user