From 3eb23fb7a14d8bfeb1c414ab7fae7efaa1708d82 Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Wed, 17 Nov 2021 11:53:11 -0600 Subject: [PATCH] Remove unneeded clone --- jobs-actix/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jobs-actix/src/lib.rs b/jobs-actix/src/lib.rs index 5b45d3b..9cc0ceb 100644 --- a/jobs-actix/src/lib.rs +++ b/jobs-actix/src/lib.rs @@ -464,8 +464,7 @@ impl QueueHandle { J: Job, { let job = new_scheduled_job(job, after)?; - let server = self.inner.clone(); - server.new_job(job).await?; + self.inner.new_job(job).await?; Ok(()) }