From d995854bb30caca5badd503ae643345ef55d4ebf Mon Sep 17 00:00:00 2001 From: Ryo Kawaguchi Date: Thu, 18 Apr 2024 20:53:40 +0900 Subject: [PATCH] Fix clippy lint --- shared/src/prompts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/prompts.rs b/shared/src/prompts.rs index d67da78..238249a 100644 --- a/shared/src/prompts.rs +++ b/shared/src/prompts.rs @@ -119,7 +119,7 @@ pub fn rename_cidr( ) -> Result, Error> { let old_cidr = if let Some(ref name) = args.name { cidrs - .into_iter() + .iter() .find(|c| &c.name == name) .ok_or_else(|| anyhow!("CIDR '{}' does not exist", name))? .clone()