aquatic_common: fix clippy warnings

This commit is contained in:
Joakim Frostegård 2024-01-20 10:37:15 +01:00
parent 746aa47cce
commit 2dd3ab8682
6 changed files with 23 additions and 23 deletions

View file

@ -296,12 +296,12 @@ pub fn pin_current_if_configured_to<C: CpuPinningConfig>(
let cpu_set = core_cpu_sets
.get(core_index)
.expect(&format!("get cpu set for core {}", core_index))
.unwrap_or_else(|| panic!("get cpu set for core {}", core_index))
.to_owned();
topology
.set_cpubind(cpu_set, CPUBIND_THREAD)
.expect(&format!("bind thread to core {}", core_index));
.unwrap_or_else(|err| panic!("bind thread to core {}: {:?}", core_index, err));
::log::info!(
"Pinned worker {:?} to cpu core {}",