diff --git a/src/db/stream.rs b/src/db/stream.rs index 59ce54a..8622dcc 100644 --- a/src/db/stream.rs +++ b/src/db/stream.rs @@ -76,7 +76,7 @@ impl<'a> Stream<'a> { acronym_lower == util::to_lowercase(&user_input) } - + fn filter_by_base_dir(&self, path: &str) -> bool { match &self.options.base_dir { Some(base_dir) => Path::new(path).starts_with(base_dir), @@ -272,4 +272,4 @@ mod tests { let stream = Stream::new(db, options); assert_eq!(is_match, stream.filter_by_keywords(path)); } -} \ No newline at end of file +}