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.
This commit is contained in:
bors 2022-10-22 13:29:58 +00:00
commit b643dd6ea6

View File

@ -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
}