mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Replace if let
with match
where appropriate
This commit is contained in:
parent
f29796da61
commit
9583dd5725
44 changed files with 201 additions and 269 deletions
|
@ -2119,10 +2119,9 @@ impl Impl {
|
|||
};
|
||||
|
||||
let fp = TyFingerprint::for_inherent_impl(&ty);
|
||||
let fp = if let Some(fp) = fp {
|
||||
fp
|
||||
} else {
|
||||
return Vec::new();
|
||||
let fp = match fp {
|
||||
Some(fp) => fp,
|
||||
None => return Vec::new(),
|
||||
};
|
||||
|
||||
let mut all = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue