Change panic into a todo

This commit is contained in:
Félix Saparelli 2021-10-13 01:51:09 +13:00
parent fd2edbf11c
commit 758ac2dc89
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 1 additions and 3 deletions

View File

@ -216,8 +216,6 @@ impl TaggedFilterer {
Ok(())
}
// TODO: globs for non-paths???
async fn recompile_globs(&self, op_filter: Op) -> Result<(), TaggedFiltererError> {
let target = match op_filter {
Op::Glob => &self.glob_compiled,
@ -322,7 +320,7 @@ impl Filter {
(Op::NotInSet, Pattern::Set(set)) => !set.contains(subject),
(Op::NotInSet, Pattern::Exact(pat)) => subject != pat,
(Op::Glob | Op::NotGlob, Pattern::Glob(_)) => {
panic!("globs are handled outside of Filter::matches")
todo!("glob matching for non paths???")
}
(op, pat) => {
warn!(