Skip to content

Commit

Permalink
scripts/chwd: Remove declaration of unused variable (#86)
Browse files Browse the repository at this point in the history
* scripts/chwd: Remove declaration of an unused variable

Makes luacheck happy

* src/profile: Replace to_owned with clone_into calls
  • Loading branch information
ventureoo authored Mar 24, 2024
1 parent 4c1fb6f commit adefe6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/chwd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ pub fn parse_profiles(file_path: &str) -> Result<Vec<Profile>> {
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);
}

Expand Down

0 comments on commit adefe6e

Please sign in to comment.