File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 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;
77pub use async_bb8_diesel:: { ConnectionError , PoolError } ;
88use async_trait:: async_trait;
99use bb8:: RunError ;
10- use diesel:: result:: { DatabaseErrorKind , Error as DieselError } ;
1110pub use diesel:: result:: Error as DbError ;
11+ use diesel:: result:: { DatabaseErrorKind , Error as DieselError } ;
1212#[ cfg( feature = "mock" ) ]
1313use mockall:: automock;
1414use newtype_uuid:: TypedUuid ;
@@ -47,11 +47,8 @@ pub enum StoreError {
4747impl StoreError {
4848 pub fn is_unique_conflict_err ( & self ) -> bool {
4949 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 ,
5552 }
5653 }
5754}
You can’t perform that action at this time.
0 commit comments