diff --git a/shared/src/prompts.rs b/shared/src/prompts.rs index 238249a..7855663 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