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