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()