Clippy autofixes
This commit is contained in:
parent
8f6aa2a6f4
commit
03e9dfebee
@ -150,11 +150,7 @@ impl Information {
|
||||
terminal: get_terminal(),
|
||||
cpu: {
|
||||
let cpus = sys.cpus();
|
||||
if let Some(first_cpu) = cpus.get(0) {
|
||||
Some(first_cpu.brand().into())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
cpus.first().map(|first_cpu| first_cpu.brand().into())
|
||||
},
|
||||
|
||||
gpu: {
|
||||
|
Loading…
Reference in New Issue
Block a user