removed incorrect replace

main
Nickiel12 1 year ago
parent 3edf4aa95a
commit e4ff4eca09

@ -76,7 +76,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let tmp = String::from_utf8_lossy(&output.stdout).into_owned(); let tmp = String::from_utf8_lossy(&output.stdout).into_owned();
if !tmp.contains("sensor") { if !tmp.contains("sensor") {
drive_temps.push(tmp.replace("\n", "Not running as sudo?")); drive_temps.push(tmp.replace("\n", ""));
} else { } else {
drive_temps.push(tmp[0..9].to_string() + " No Sensor"); drive_temps.push(tmp[0..9].to_string() + " No Sensor");
} }

Loading…
Cancel
Save