fix some iteration bugs
This commit is contained in:
parent
de51666742
commit
8eab2502c7
8 changed files with 143 additions and 89 deletions
|
|
@ -109,12 +109,3 @@ pub struct Filter {
|
|||
pub matcher: Matcher,
|
||||
pub kind: FilterKind,
|
||||
}
|
||||
|
||||
impl Filter {
|
||||
pub fn removes(&self, elem: &LogEntry) -> bool {
|
||||
match self.kind {
|
||||
FilterKind::Inline => false,
|
||||
FilterKind::Remove => self.matcher.matches(elem),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue