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