From a82c679c97af1e0aabe9eb375573d5d23fc75391 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 13 Jan 2020 11:27:06 -0500 Subject: Some clippy lints --- crates/ra_syntax/src/ast/expr_extensions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_syntax') 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 { } impl BinOp { - pub fn is_assignment(&self) -> bool { - match *self { + pub fn is_assignment(self) -> bool { + match self { BinOp::Assignment | BinOp::AddAssign | BinOp::DivAssign -- cgit v1.2.3