mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
slightly better name
This commit is contained in:
parent
df6efe62c5
commit
9d0cda4bc8
3 changed files with 20 additions and 12 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue