Remove unneeded clone

This commit is contained in:
Aode (lion) 2021-11-17 11:53:11 -06:00
parent 70ab459ae9
commit 3eb23fb7a1

View file

@ -464,8 +464,7 @@ impl QueueHandle {
J: Job, J: Job,
{ {
let job = new_scheduled_job(job, after)?; let job = new_scheduled_job(job, after)?;
let server = self.inner.clone(); self.inner.new_job(job).await?;
server.new_job(job).await?;
Ok(()) Ok(())
} }