diff options
| author | bors <bors@rust-lang.org> | 2022-10-22 13:29:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-22 13:29:58 +0000 |
| commit | b643dd6ea601aafbb636cac7792fa4fe3b6f948e (patch) | |
| tree | f6dc6edc5a3f238789500599b261b1f4db593444 | |
| parent | 8ee23f4f0aebf344089bfc201f1dbf641534cf94 (diff) | |
| parent | bd49d019063478f2f159165734600ee7c6e72ae7 (diff) | |
| download | rust-b643dd6ea601aafbb636cac7792fa4fe3b6f948e.tar.gz rust-b643dd6ea601aafbb636cac7792fa4fe3b6f948e.zip | |
Auto merge of #13461 - emilio:ide-cleanup-continue, r=Veykril
ide: Remove unnecessary continue. Just a minor clean-up I found while going through the code.
| -rw-r--r-- | crates/ide/src/static_index.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide/src/static_index.rs b/crates/ide/src/static_index.rs index 9e5eb909508..27ad1a948d1 100644 --- a/crates/ide/src/static_index.rs +++ b/crates/ide/src/static_index.rs @@ -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); if let Some(&[x]) = def.as_deref() { return Some(x); - } else { - continue; - }; + } } None } |
