clippy clean up multiple files

This commit is contained in:
2025-08-11 23:27:18 -07:00
parent 7cd6a6e0a1
commit 1e248306a6
8 changed files with 42 additions and 30 deletions
+5 -1
View File
@@ -41,7 +41,11 @@ pub async fn collect_metrics(state: &AppState) -> Metrics {
components.refresh(true);
components.iter().find_map(|c| {
let l = c.label().to_ascii_lowercase();
if l.contains("cpu") || l.contains("package") || l.contains("tctl") || l.contains("tdie") {
if l.contains("cpu")
|| l.contains("package")
|| l.contains("tctl")
|| l.contains("tdie")
{
c.temperature()
} else {
None