mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-13 07:41:11 +01:00
Change panic into a todo
This commit is contained in:
parent
fd2edbf11c
commit
758ac2dc89
1 changed files with 1 additions and 3 deletions
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue