diff --git a/scripts/chwd b/scripts/chwd index e1c25a4..36c4845 100755 --- a/scripts/chwd +++ b/scripts/chwd @@ -171,7 +171,7 @@ local function get_profile(name, path) end if not check_on_multilib() and packages then - packages, _ = packages:gsub("%s?(lib32-[A-Za-z0-9-]+)", "") + packages = packages:gsub("%s?(lib32-[A-Za-z0-9-]+)", "") end return packages, hooks diff --git a/src/profile.rs b/src/profile.rs index 99e8b08..a4feaea 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -97,11 +97,11 @@ pub fn parse_profiles(file_path: &str) -> Result> { continue; } let mut nested_profile = nested_profile?; - nested_profile.prof_path = file_path.to_owned(); + file_path.clone_into(&mut nested_profile.prof_path); profiles.push(nested_profile); } let mut toplevel_profile = toplevel_profile?; - toplevel_profile.prof_path = file_path.to_owned(); + file_path.clone_into(&mut toplevel_profile.prof_path); profiles.push(toplevel_profile); }