From e85645186c2e8cf043924481f1fb276f8ec32d15 Mon Sep 17 00:00:00 2001 From: Rene van der Meer <9930578+golemparts@users.noreply.github.com> Date: Fri, 17 May 2024 13:13:08 +0200 Subject: [PATCH] Implement clippy suggestions --- src/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.rs b/src/system.rs index 7cd8fd39..0a170d1b 100644 --- a/src/system.rs +++ b/src/system.rs @@ -162,7 +162,7 @@ fn parse_proc_cpuinfo() -> Result { }); let mut revision: String = String::new(); - for line in proc_cpuinfo.lines().flatten() { + for line in proc_cpuinfo.lines().map_while(result::Result::ok) { if let Some(line_value) = line.strip_prefix("Revision\t: ") { revision = String::from(line_value).to_lowercase(); }