Skip to content

Commit 9223712

Browse files
authored
Merge pull request #91 from rust-math/skip-unreadble-directory
Skip unreadable directory
2 parents a1d6b02 + 8b9da0e commit 9223712

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

intel-mkl-tool/src/entry.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ impl Library {
9494
let mut library_dir = None;
9595
let mut include_dir = None;
9696
let mut iomp5_dir = None;
97-
for entry in walkdir::WalkDir::new(root_dir) {
98-
let entry = entry.unwrap();
97+
for entry in walkdir::WalkDir::new(root_dir).into_iter().flatten() {
9998
if entry.path_is_symlink() {
10099
continue;
101100
}

0 commit comments

Comments
 (0)