mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Some clippy lints
This commit is contained in:
parent
5621f90071
commit
a82c679c97
10 changed files with 45 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue