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(), terminal: get_terminal(),
cpu: { cpu: {
let cpus = sys.cpus(); let cpus = sys.cpus();
if let Some(first_cpu) = cpus.get(0) { cpus.first().map(|first_cpu| first_cpu.brand().into())
Some(first_cpu.brand().into())
} else {
None
}
}, },
gpu: { gpu: {