chore: clippy

This commit is contained in:
Vukašin Vojinović 2025-10-01 18:48:45 +02:00 committed by Michael Murphy
parent 75256dac19
commit 2d6d507a48
41 changed files with 139 additions and 172 deletions

View file

@ -195,7 +195,7 @@ pub fn processor_name(bump: &Bump, name: &mut String) {
let s = sysinfo::System::new_with_specifics(
sysinfo::RefreshKind::nothing().with_cpu(sysinfo::CpuRefreshKind::everything()),
);
name.push_str(s.cpus().into_iter().nth(0).unwrap().brand());
name.push_str(s.cpus().iter().next().unwrap().brand());
}
pub fn read_to_string<'a, P: AsRef<OsStr>>(