We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951173b commit fa609bdCopy full SHA for fa609bd
josh-core/src/filter/opt.rs
@@ -445,6 +445,7 @@ fn step(filter: Filter) -> Filter {
445
Op::Subtract(a, b) if a == b => Op::Empty,
446
Op::Subtract(af, bf) => match (to_op(af), to_op(bf)) {
447
(Op::Empty, _) => Op::Empty,
448
+ (Op::Message(..), Op::Message(..)) => Op::Empty,
449
(_, Op::Nop) => Op::Empty,
450
(a, Op::Empty) => a,
451
(Op::Chain(a, b), Op::Chain(c, d)) if a == c => {
@@ -492,6 +493,7 @@ fn step(filter: Filter) -> Filter {
492
493
pub fn invert(filter: Filter) -> JoshResult<Filter> {
494
let result = match to_op(filter) {
495
Op::Nop => Some(Op::Nop),
496
+ Op::Message(..) => Some(Op::Nop),
497
Op::Linear => Some(Op::Nop),
498
Op::Prune => Some(Op::Prune),
499
Op::Unsign => Some(Op::Unsign),
0 commit comments