From a3bce4c2d310dcf5ccc8f4618d6264b9def72052 Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 1 Apr 2024 17:06:36 -0500 Subject: [PATCH] clippy --- src/queue/process.rs | 2 +- src/repo/postgres.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/queue/process.rs b/src/queue/process.rs index 7c74a7a..b2343d6 100644 --- a/src/queue/process.rs +++ b/src/queue/process.rs @@ -17,7 +17,7 @@ use std::sync::Arc; use super::{JobContext, JobFuture, JobResult}; -pub(super) fn perform<'a, S>(state: &'a State, job: serde_json::Value) -> JobFuture<'a> +pub(super) fn perform(state: &State, job: serde_json::Value) -> JobFuture<'_> where S: Store + 'static, { diff --git a/src/repo/postgres.rs b/src/repo/postgres.rs index 8a58b46..ebb4914 100644 --- a/src/repo/postgres.rs +++ b/src/repo/postgres.rs @@ -403,7 +403,7 @@ impl PostgresRepo { diesel::result::DatabaseErrorKind::UniqueViolation, _, )) => Ok(Err(AlreadyInserted)), - Err(e) => Err(PostgresError::Diesel(e).into()), + Err(e) => Err(PostgresError::Diesel(e)), } }