mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
ide: Remove unnecessary continue.
This commit is contained in:
parent
8ee23f4f0a
commit
bd49d01906
1 changed files with 1 additions and 3 deletions
|
@ -210,9 +210,7 @@ fn get_definition(sema: &Semantics<'_, RootDatabase>, token: SyntaxToken) -> Opt
|
||||||
let def = IdentClass::classify_token(sema, &token).map(IdentClass::definitions_no_ops);
|
let def = IdentClass::classify_token(sema, &token).map(IdentClass::definitions_no_ops);
|
||||||
if let Some(&[x]) = def.as_deref() {
|
if let Some(&[x]) = def.as_deref() {
|
||||||
return Some(x);
|
return Some(x);
|
||||||
} else {
|
}
|
||||||
continue;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue