diff --git a/crates/ra_assists/src/assists/move_bounds.rs b/crates/ra_assists/src/assists/move_bounds.rs index f791d22b0ba7..d2444b6b9c6a 100644 --- a/crates/ra_assists/src/assists/move_bounds.rs +++ b/crates/ra_assists/src/assists/move_bounds.rs @@ -18,7 +18,7 @@ pub(crate) fn move_bounds_to_where_clause(mut ctx: AssistCtx) } 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; }