Skip to content

Commit 07c51ba

Browse files
committed
Fmt
1 parent 9da2c75 commit 07c51ba

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

v-model/src/storage/mod.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use std::fmt::Debug;
77
pub use async_bb8_diesel::{ConnectionError, PoolError};
88
use async_trait::async_trait;
99
use bb8::RunError;
10-
use diesel::result::{DatabaseErrorKind, Error as DieselError};
1110
pub use diesel::result::Error as DbError;
11+
use diesel::result::{DatabaseErrorKind, Error as DieselError};
1212
#[cfg(feature = "mock")]
1313
use mockall::automock;
1414
use newtype_uuid::TypedUuid;
@@ -47,11 +47,8 @@ pub enum StoreError {
4747
impl 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
}

0 commit comments

Comments
 (0)