From 0d997be9f5827118589972ca177ee822b193981c Mon Sep 17 00:00:00 2001 From: SARDONYX-sard <68905624+SARDONYX-sard@users.noreply.github.com> Date: Sun, 12 Jan 2025 03:40:11 +0900 Subject: [PATCH] style: lint code --- crates/serde_hkx_features/src/verify/dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/serde_hkx_features/src/verify/dir.rs b/crates/serde_hkx_features/src/verify/dir.rs index 24f55df0b..6fa22c53c 100644 --- a/crates/serde_hkx_features/src/verify/dir.rs +++ b/crates/serde_hkx_features/src/verify/dir.rs @@ -25,7 +25,7 @@ fn filter_hkx_files(dir: &Path) -> Vec { entry .path() .extension() - .map_or(false, |ext| ext.eq_ignore_ascii_case("hkx")) + .is_some_and(|ext| ext.eq_ignore_ascii_case("hkx")) }) .map(|entry| entry.path()) .collect()