Commit 4852645 1 parent 0d50b4e commit 4852645 Copy full SHA for 4852645
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub async fn test_cake_error_sqlx(db: &DbConn) {
31
31
. expect_err ( "inserting should fail due to duplicate primary key" ) ;
32
32
33
33
#[ cfg( any( feature = "sqlx-mysql" , feature = "sqlx-sqlite" ) ) ]
34
- match error {
34
+ match & error {
35
35
DbErr :: Exec ( RuntimeErr :: SqlxError ( error) ) => match error {
36
36
Error :: Database ( e) => {
37
37
#[ cfg( feature = "sqlx-mysql" ) ]
@@ -44,7 +44,7 @@ pub async fn test_cake_error_sqlx(db: &DbConn) {
44
44
_ => panic ! ( "Unexpected Error kind" ) ,
45
45
}
46
46
#[ cfg( feature = "sqlx-postgres" ) ]
47
- match error {
47
+ match & error {
48
48
DbErr :: Query ( RuntimeErr :: SqlxError ( error) ) => match error {
49
49
Error :: Database ( e) => {
50
50
assert_eq ! ( e. code( ) . unwrap( ) , "23505" ) ;
You can’t perform that action at this time.
0 commit comments