diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-01-13 17:06:19 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-01-13 17:06:19 +0000 |
commit | 7ea7de338f1c8ad1e89600e04570f03c2688c0c0 (patch) | |
tree | ebd05b4c0f0d91eda62d2767780646f95835270b /crates/ra_syntax | |
parent | 27abd4a1a57bba47c717cb55e4719d69f2c5eb5c (diff) | |
parent | c5c5f4260b4ab1a03d2d3f7a616202369adc9ade (diff) |
Merge #2825
2825: Some clippy lints r=matklad a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates/ra_syntax')
-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 |