From 53d1673edc13512423fa5236908a85102324c26a Mon Sep 17 00:00:00 2001 From: kjeremy Date: Fri, 11 Oct 2019 15:55:45 -0400 Subject: [PATCH] use any() --- crates/ra_assists/src/assists/move_bounds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ra_assists/src/assists/move_bounds.rs b/crates/ra_assists/src/assists/move_bounds.rs index f791d22b0ba..d2444b6b9c6 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; }