use any()

This commit is contained in:
kjeremy 2019-10-11 15:55:45 -04:00
parent 0896ca04c4
commit 53d1673edc

View File

@ -18,7 +18,7 @@ pub(crate) fn move_bounds_to_where_clause(mut ctx: AssistCtx<impl HirDatabase>)
} }
let parent = type_param_list.syntax().parent()?; 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; return None;
} }