diff --git a/src/db/dir.rs b/src/db/dir.rs index 91e1144..d3a1ac2 100644 --- a/src/db/dir.rs +++ b/src/db/dir.rs @@ -34,10 +34,7 @@ impl Dir<'_> { } pub fn is_exact_match(&self, keyword: &str) -> bool { - let last = Path::new(self.path.as_ref()) - .file_name() - .and_then(|s| s.to_str()) - .unwrap_or(""); + let last = Path::new(self.path.as_ref()).file_name().and_then(|s| s.to_str()).unwrap_or(""); to_lowercase(last) == keyword } }