Skip to content

Commit

Permalink
🧹 profile: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Oct 27, 2024
1 parent 2db316f commit d7e7e65
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,8 @@ pub fn get_available_profiles(is_ai_sdk: bool) -> Vec<Profile> {
if device.available_profiles.is_empty() {
continue;
}
let mut profiles = device
.available_profiles
.clone()
.into_iter()
.map(|x| Arc::unwrap_or_clone(x))
.collect();
let mut profiles =
device.available_profiles.clone().into_iter().map(Arc::unwrap_or_clone).collect();
available_profiles.append(&mut profiles);
}
available_profiles
Expand Down

0 comments on commit d7e7e65

Please sign in to comment.