diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/expr_extensions.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/expr_extensions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/expr_extensions.rs b/crates/ra_syntax/src/ast/expr_extensions.rs index 3dfecfe76..6da4b1309 100644 --- a/crates/ra_syntax/src/ast/expr_extensions.rs +++ b/crates/ra_syntax/src/ast/expr_extensions.rs | |||
@@ -127,8 +127,8 @@ pub enum BinOp { | |||
127 | } | 127 | } |
128 | 128 | ||
129 | impl BinOp { | 129 | impl BinOp { |
130 | pub fn is_assignment(&self) -> bool { | 130 | pub fn is_assignment(self) -> bool { |
131 | match *self { | 131 | match self { |
132 | BinOp::Assignment | 132 | BinOp::Assignment |
133 | | BinOp::AddAssign | 133 | | BinOp::AddAssign |
134 | | BinOp::DivAssign | 134 | | BinOp::DivAssign |