chore: clippy
This commit is contained in:
parent
75256dac19
commit
2d6d507a48
41 changed files with 139 additions and 172 deletions
|
|
@ -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>>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue