From 56a60d969d10779cad94515b517f6b065f03db41 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Thu, 25 Apr 2024 14:16:18 +0100 Subject: [PATCH] Fix issue --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cc0a557..0dcc507 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,7 @@ struct Place { fn hash_files(files: ReadDir) -> impl Iterator { files.into_iter() .map(|f| f.unwrap().path()) - .filter_map(|p| p.extension().and_then(|ext| ext.to_str()).filter(|p| p == "gz")) + .filter(|p| p.extension().and_then(|ext| ext.to_str()).filter(|p| *p == "gz").is_some()) .map(|path| { let date = { let file_name = path.file_name().unwrap().to_str().unwrap();