Skip to content

Commit

Permalink
Address clippy lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Oct 30, 2023
1 parent bef9c2c commit a295b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepwell/src/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ async fn job_queue_exists(rsmq: &mut MultiplexedRsmq) -> Result<bool> {
// NOTE: Effectively the same as rsmq.list_queues().await?.contains(JOB_QUEUE_NAME),
// except we don't have to deal with the "&String" type issue.
let queues = rsmq.list_queues().await?;
let exists = queues.iter().find(|name| &JOB_QUEUE_NAME == name).is_some();
let exists = queues.iter().any(|name| JOB_QUEUE_NAME == name);
Ok(exists)
}

0 comments on commit a295b9f

Please sign in to comment.