mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix clippy::single_match
This commit is contained in:
parent
354db651da
commit
ecd420636e
9 changed files with 51 additions and 76 deletions
|
@ -281,9 +281,8 @@ impl Module {
|
|||
|
||||
for impl_block in self.impl_blocks(db) {
|
||||
for item in impl_block.items(db) {
|
||||
match item {
|
||||
crate::ImplItem::Method(f) => f.diagnostics(db, sink),
|
||||
_ => (),
|
||||
if let crate::ImplItem::Method(f) = item {
|
||||
f.diagnostics(db, sink);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue