Skip to content

Commit

Permalink
Some clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Aug 13, 2022
1 parent 59a721a commit 303018b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/apalis-core/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl<W: Actor> Addr<W> {
/// Fails if noone will send message
/// # Panics
/// If queue is full
#[allow(unused_variables, clippy::expect_used)]
#[allow(unused_variables, clippy::expect_used, clippy::let_and_return)]
pub async fn send<M>(&self, message: M) -> Result<M::Result, RecvError>
where
M: Message + Send + 'static,
Expand Down Expand Up @@ -331,8 +331,7 @@ where
type Result = Result<WorkerStatus, WorkerError>;

async fn handle(&mut self, msg: WorkerManagement) -> Result<WorkerStatus, WorkerError> {
let res = self.manage(msg).await;
res
self.manage(msg).await
}
}
impl<T> Message for JobRequestWrapper<T> {
Expand Down

0 comments on commit 303018b

Please sign in to comment.