mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Fix some more basic clippy lints
This commit is contained in:
parent
9485d6efba
commit
dfdf6fd9f8
9 changed files with 22 additions and 29 deletions
|
@ -52,12 +52,12 @@ impl AssistKind {
|
|||
|
||||
match self {
|
||||
AssistKind::None | AssistKind::Generate => true,
|
||||
AssistKind::Refactor => match other {
|
||||
AssistKind::Refactor => matches!(
|
||||
other,
|
||||
AssistKind::RefactorExtract
|
||||
| AssistKind::RefactorInline
|
||||
| AssistKind::RefactorRewrite => true,
|
||||
_ => false,
|
||||
},
|
||||
| AssistKind::RefactorInline
|
||||
| AssistKind::RefactorRewrite
|
||||
),
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue