2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-20 11:21:14 +00:00
This commit is contained in:
asonix 2024-04-01 17:06:36 -05:00
parent c013f697fd
commit a3bce4c2d3
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ use std::sync::Arc;
use super::{JobContext, JobFuture, JobResult}; use super::{JobContext, JobFuture, JobResult};
pub(super) fn perform<'a, S>(state: &'a State<S>, job: serde_json::Value) -> JobFuture<'a> pub(super) fn perform<S>(state: &State<S>, job: serde_json::Value) -> JobFuture<'_>
where where
S: Store + 'static, S: Store + 'static,
{ {

View file

@ -403,7 +403,7 @@ impl PostgresRepo {
diesel::result::DatabaseErrorKind::UniqueViolation, diesel::result::DatabaseErrorKind::UniqueViolation,
_, _,
)) => Ok(Err(AlreadyInserted)), )) => Ok(Err(AlreadyInserted)),
Err(e) => Err(PostgresError::Diesel(e).into()), Err(e) => Err(PostgresError::Diesel(e)),
} }
} }