Skip to content

Commit b8e130b

Browse files
committed
Fix botched conflict resolution.
1 parent e707589 commit b8e130b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/parser.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -375,25 +375,6 @@ impl PrometheusParser {
375375
fn expression(lhs: Expression, op: Node, rhs: Expression) -> Result<Expression> {
376376
let span = Some(Span::from_node(&op));
377377

378-
use Rule::*;
379-
let kind = match op.as_rule() {
380-
op_or => OperatorKind::Or,
381-
op_unless => OperatorKind::Unless,
382-
op_and => OperatorKind::And,
383-
op_greater_than => OperatorKind::GreaterThan,
384-
op_greater_than_equal => OperatorKind::GreaterThanEqual,
385-
op_less_than => OperatorKind::LessThan,
386-
op_less_than_equal => OperatorKind::LessThanEqual,
387-
op_not_equal => OperatorKind::NotEqual,
388-
op_equal => OperatorKind::Equal,
389-
op_subtract => OperatorKind::Subtract,
390-
op_add => OperatorKind::Add,
391-
op_modulo => OperatorKind::Modulo,
392-
op_divide => OperatorKind::Divide,
393-
op_multiply => OperatorKind::Multiply,
394-
op_power => OperatorKind::Power,
395-
r => return Err(op.error(format!("rule {:?} isn't an operator", r))),
396-
};
397378
use Rule::*;
398379
let kind = match op.as_rule() {
399380
op_or => OperatorKind::Or,

0 commit comments

Comments
 (0)