Skip to content

Commit

Permalink
🧹 make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Oct 3, 2024
1 parent c240ee7 commit ecb481c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ pub fn write_profile_to_file(file_path: &str, profile: &Profile) -> bool {
toml::Table::new()
};

let table_item = toml::Value::Table(profile_into_toml(&profile));
let table_item = toml::Value::Table(profile_into_toml(profile));

profiles.insert(profile.name.clone(), table_item);

Expand Down Expand Up @@ -487,7 +487,7 @@ mod tests {
assert_eq!(parsed_profiles[0].name, "nvidia-dkms");
assert_eq!(parsed_profiles[0].desc, "Closed source NVIDIA drivers for Linux (Latest)");
assert_eq!(parsed_profiles[0].priority, 12);
assert_eq!(parsed_profiles[0].is_ai_sdk, false);
assert!(!parsed_profiles[0].is_ai_sdk);
assert_eq!(
parsed_profiles[0].packages,
"nvidia-utils egl-wayland nvidia-settings opencl-nvidia lib32-opencl-nvidia \
Expand Down

0 comments on commit ecb481c

Please sign in to comment.