From 9d0cda4bc84350961f3884e75a1c20e62c449ede Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 20 Feb 2019 15:03:31 +0300 Subject: slightly better name --- crates/ra_syntax/src/grammar/expressions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_syntax/src/grammar') diff --git a/crates/ra_syntax/src/grammar/expressions.rs b/crates/ra_syntax/src/grammar/expressions.rs index 28fcb1f7d..d5a4f4d7b 100644 --- a/crates/ra_syntax/src/grammar/expressions.rs +++ b/crates/ra_syntax/src/grammar/expressions.rs @@ -138,7 +138,7 @@ enum Op { } fn current_op(p: &Parser) -> (u8, Op) { - if let Some(t) = p.next3() { + if let Some(t) = p.current3() { match t { (L_ANGLE, L_ANGLE, EQ) => return (1, Op::Composite(SHLEQ, 3)), (R_ANGLE, R_ANGLE, EQ) => return (1, Op::Composite(SHREQ, 3)), @@ -146,7 +146,7 @@ fn current_op(p: &Parser) -> (u8, Op) { } } - if let Some(t) = p.next2() { + if let Some(t) = p.current2() { match t { (PLUS, EQ) => return (1, Op::Composite(PLUSEQ, 2)), (MINUS, EQ) => return (1, Op::Composite(MINUSEQ, 2)), -- cgit v1.2.3