From a295b9fa21c50b90aba28d18cf1a56cc2fb5b2ac Mon Sep 17 00:00:00 2001 From: Emmie Maeda Date: Mon, 30 Oct 2023 01:21:51 -0400 Subject: [PATCH] Address clippy lint. --- deepwell/src/redis.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepwell/src/redis.rs b/deepwell/src/redis.rs index a6d712d8786..a0f0a19fd02 100644 --- a/deepwell/src/redis.rs +++ b/deepwell/src/redis.rs @@ -57,6 +57,6 @@ async fn job_queue_exists(rsmq: &mut MultiplexedRsmq) -> Result { // 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) }