cargo fmt
This commit is contained in:
parent
9622a8f4e9
commit
39d07a5509
|
@ -76,7 +76,7 @@ impl<'a> Stream<'a> {
|
||||||
|
|
||||||
acronym_lower == util::to_lowercase(&user_input)
|
acronym_lower == util::to_lowercase(&user_input)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn filter_by_base_dir(&self, path: &str) -> bool {
|
fn filter_by_base_dir(&self, path: &str) -> bool {
|
||||||
match &self.options.base_dir {
|
match &self.options.base_dir {
|
||||||
Some(base_dir) => Path::new(path).starts_with(base_dir),
|
Some(base_dir) => Path::new(path).starts_with(base_dir),
|
||||||
|
@ -272,4 +272,4 @@ mod tests {
|
||||||
let stream = Stream::new(db, options);
|
let stream = Stream::new(db, options);
|
||||||
assert_eq!(is_match, stream.filter_by_keywords(path));
|
assert_eq!(is_match, stream.filter_by_keywords(path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue