File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ use std::fmt::Debug;
7
7
pub use async_bb8_diesel:: { ConnectionError , PoolError } ;
8
8
use async_trait:: async_trait;
9
9
use bb8:: RunError ;
10
- use diesel:: result:: { DatabaseErrorKind , Error as DieselError } ;
11
10
pub use diesel:: result:: Error as DbError ;
11
+ use diesel:: result:: { DatabaseErrorKind , Error as DieselError } ;
12
12
#[ cfg( feature = "mock" ) ]
13
13
use mockall:: automock;
14
14
use newtype_uuid:: TypedUuid ;
@@ -47,11 +47,8 @@ pub enum StoreError {
47
47
impl StoreError {
48
48
pub fn is_unique_conflict_err ( & self ) -> bool {
49
49
match self {
50
- Self :: Db ( DieselError :: DatabaseError (
51
- DatabaseErrorKind :: UniqueViolation ,
52
- _,
53
- ) ) => true ,
54
- _ => false
50
+ Self :: Db ( DieselError :: DatabaseError ( DatabaseErrorKind :: UniqueViolation , _) ) => true ,
51
+ _ => false ,
55
52
}
56
53
}
57
54
}
You can’t perform that action at this time.
0 commit comments