Clippy autofixes

This commit is contained in:
shibedrill 2024-08-15 17:47:26 -04:00
parent 8f6aa2a6f4
commit 03e9dfebee

View File

@ -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: {