diff --git a/shared/src/prompts.rs b/shared/src/prompts.rs index f69a5bb..7507d73 100644 --- a/shared/src/prompts.rs +++ b/shared/src/prompts.rs @@ -138,7 +138,7 @@ pub fn rename_cidr( }; let mut new_cidr = old_cidr; - new_cidr.contents.name = new_name.clone(); + new_cidr.contents.name.clone_from(&new_name); Ok( if args.yes