Skip to content

Commit 57d455d

Browse files
committed
remove PredicateEvaluator::evaluate_predicate_with_direction
1 parent cde7f21 commit 57d455d

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/internals/postfix_stack_item.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ pub(crate) enum PostfixStackItem<'a, Predicate> {
66
}
77

88
impl<Predicate> PostfixStackItem<'_, Predicate> {
9-
pub(crate) fn evaluate<Reason, Direction>(
9+
pub(crate) fn evaluate<Reason>(
1010
&self,
11-
evaluator: &dyn PredicateEvaluator<
12-
Predicate = Predicate,
13-
Reason = Reason,
14-
Direction = Direction,
15-
>,
11+
evaluator: &dyn PredicateEvaluator<Predicate = Predicate, Reason = Reason>,
1612
reasons: &mut Vec<Reason>,
1713
) -> bool {
1814
match self {

src/structs/postfix_expression.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,9 @@ impl<Predicate> PostfixExpression<Predicate> {
5858
InfixExpression::from_tokens_unchecked(output_stack.remove(0).into())
5959
}
6060

61-
pub fn evaluate<Reason, Direction>(
61+
pub fn evaluate<Reason>(
6262
&self,
63-
evaluator: &dyn PredicateEvaluator<
64-
Predicate = Predicate,
65-
Reason = Reason,
66-
Direction = Direction,
67-
>,
63+
evaluator: &dyn PredicateEvaluator<Predicate = Predicate, Reason = Reason>,
6864
) -> (bool, Vec<Reason>) {
6965
let mut stack: Vec<PostfixStackItem<Predicate>> = Vec::new();
7066
let mut reasons: Vec<Reason> = Vec::new();

0 commit comments

Comments
 (0)