Skip to content

Commit 2356b1a

Browse files
committed
clippy --fix
1 parent b7eb03f commit 2356b1a

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

intel-mkl-tool/src/entry.rs

+10-12
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,16 @@ impl Library {
244244
let mut year = None;
245245
let mut minor = None;
246246
let mut update = None;
247-
for line in f.lines() {
248-
if let Ok(line) = line {
249-
if !line.starts_with("#define") {
250-
continue;
251-
}
252-
let ss: Vec<&str> = line.split(' ').collect();
253-
match ss[1] {
254-
"__INTEL_MKL__" => year = Some(ss[2].parse()?),
255-
"__INTEL_MKL_MINOR__" => minor = Some(ss[2].parse()?),
256-
"__INTEL_MKL_UPDATE__" => update = Some(ss[2].parse()?),
257-
_ => continue,
258-
}
247+
for line in f.lines().flatten() {
248+
if !line.starts_with("#define") {
249+
continue;
250+
}
251+
let ss: Vec<&str> = line.split(' ').collect();
252+
match ss[1] {
253+
"__INTEL_MKL__" => year = Some(ss[2].parse()?),
254+
"__INTEL_MKL_MINOR__" => minor = Some(ss[2].parse()?),
255+
"__INTEL_MKL_UPDATE__" => update = Some(ss[2].parse()?),
256+
_ => continue,
259257
}
260258
}
261259
match (year, minor, update) {

0 commit comments

Comments
 (0)