Skip to content

Commit b643dd6

Browse files
committed
Auto merge of rust-lang#13461 - emilio:ide-cleanup-continue, r=Veykril
ide: Remove unnecessary continue. Just a minor clean-up I found while going through the code.
2 parents 8ee23f4 + bd49d01 commit b643dd6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/ide/src/static_index.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ fn get_definition(sema: &Semantics<'_, RootDatabase>, token: SyntaxToken) -> Opt
210210
let def = IdentClass::classify_token(sema, &token).map(IdentClass::definitions_no_ops);
211211
if let Some(&[x]) = def.as_deref() {
212212
return Some(x);
213-
} else {
214-
continue;
215-
};
213+
}
216214
}
217215
None
218216
}

0 commit comments

Comments
 (0)