mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 22:13:27 +00:00
Merge #1999
1999: Simplify find().is_some() to any() r=matklad a=kjeremy Co-authored-by: kjeremy <kjeremy@gmail.com>
This commit is contained in:
commit
691bc27686
@ -18,7 +18,7 @@ pub(crate) fn move_bounds_to_where_clause(mut ctx: AssistCtx<impl HirDatabase>)
|
||||
}
|
||||
|
||||
let parent = type_param_list.syntax().parent()?;
|
||||
if parent.children_with_tokens().find(|it| it.kind() == WHERE_CLAUSE).is_some() {
|
||||
if parent.children_with_tokens().any(|it| it.kind() == WHERE_CLAUSE) {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user