Skip to content

Commit

Permalink
Implement clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
golemparts committed May 17, 2024
1 parent bc82495 commit e856451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn parse_proc_cpuinfo() -> Result<Model> {
});

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();
}
Expand Down

0 comments on commit e856451

Please sign in to comment.