From 60abdc8e28a8833dbb0c3aba3b2bf2047e80caf3 Mon Sep 17 00:00:00 2001 From: Robinson Arysseril <72635727+death7654@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:38:31 +0530 Subject: [PATCH] Cleaning Errors --- src-tauri/src/temps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/temps.rs b/src-tauri/src/temps.rs index 3dd5981..b891b10 100644 --- a/src-tauri/src/temps.rs +++ b/src-tauri/src/temps.rs @@ -1,4 +1,4 @@ -use std::{fs}; +use std::fs; fn get_temp_sys() -> u16 { let paths = match fs::read_dir("/sys/class/hwmon/") { @@ -29,7 +29,7 @@ fn get_temp_sys() -> u16 { pub fn get_temp(ec_temps: String) -> u16 { let mut max_temp: u16 = 0; let mut vector = Vec::new(); - let temps = ec_temps + let _ = ec_temps .split("\n") .into_iter() .map(|l: &str| {