summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/files.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files.rs b/src/files.rs
index d6d0c6b..4e09378 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -91,7 +91,7 @@ pub fn index_files_recursively(
for entry in WalkDir::new(&abspath) {
if handler.load(Ordering::SeqCst) {
- let path = entry.unwrap().into_path();
+ let path = entry?.into_path();
if !path.is_file() {
continue;
}