ide: Remove unnecessary continue.

This commit is contained in:
Emilio Cobos Álvarez 2022-10-22 14:04:47 +02:00
parent 8ee23f4f0a
commit bd49d01906
No known key found for this signature in database
GPG Key ID: E1152D0994E4BF8A

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
}