mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
fix lint
was fine locally though?
This commit is contained in:
parent
964ac1e1bf
commit
f9c8e65f64
1 changed files with 2 additions and 1 deletions
|
|
@ -33,7 +33,8 @@ fn component_to_regex(component: &str) -> Result<Regex> {
|
||||||
Regex::new(&format!("(?i){}", regex::escape(component))).map_err(Into::into)
|
Regex::new(&format!("(?i){}", regex::escape(component))).map_err(Into::into)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns None if tag wasn't a match, otherwise whether it was a consecutive prefix match
|
/// Returns None if tag wasn't a match, otherwise whether it was a consecutive
|
||||||
|
/// prefix match
|
||||||
fn filters_match(filters: &[Regex], tag: &str) -> Option<bool> {
|
fn filters_match(filters: &[Regex], tag: &str) -> Option<bool> {
|
||||||
let mut remaining_tag_components = tag.split("::");
|
let mut remaining_tag_components = tag.split("::");
|
||||||
let mut is_prefix = true;
|
let mut is_prefix = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue