summaryrefslogtreecommitdiff
path: root/plugins/bntl_utils/src/helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/bntl_utils/src/helper.rs')
-rw-r--r--plugins/bntl_utils/src/helper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bntl_utils/src/helper.rs b/plugins/bntl_utils/src/helper.rs
index 3fc1a047..2aea8e0a 100644
--- a/plugins/bntl_utils/src/helper.rs
+++ b/plugins/bntl_utils/src/helper.rs
@@ -8,7 +8,7 @@ pub fn path_to_type_libraries(path: &Path) -> Vec<Ref<TypeLibrary>> {
.into_iter()
.filter_map(|e| e.ok())
.filter(|e| e.file_type().is_file())
- .filter(|e| e.path().extension().map_or(false, |ext| ext == "bntl"))
+ .filter(|e| e.path().extension().is_some_and(|ext| ext == "bntl"))
.filter_map(|e| TypeLibrary::load_from_file(e.path()))
.collect::<Vec<_>>()
}