diff --git a/src/common/set_roles.rs b/src/common/set_roles.rs index 323677f..b857e8a 100644 --- a/src/common/set_roles.rs +++ b/src/common/set_roles.rs @@ -218,8 +218,8 @@ pub mod committee { // if a club/soc ever changes their name if let Some(x) = roles_db.get_mut(&committee.id) { - x.name_role = committee.name_full.to_owned(); - x.name_channel = committee.name_profile.to_owned(); + committee.name_full.clone_into(&mut x.name_role); + committee.name_profile.clone_into(&mut x.name_channel); } // handle new clubs/socs