Fix clippy warnings

This commit is contained in:
Luke D. Jones
2021-07-31 23:09:00 +12:00
parent 0599be02dc
commit fb124dd228
6 changed files with 16 additions and 17 deletions

View File

@@ -139,7 +139,7 @@ impl FanAndCpuZbus {
if let Ok(ctrl) = self.inner.try_lock() {
if let Ok(cfg) = ctrl.config.clone().try_lock() {
if let Some(profile) = cfg.power_profiles.get(&cfg.active_profile) {
self.notify_profile(&profile)
self.notify_profile(profile)
.unwrap_or_else(|err| warn!("{}", err));
}
}