From 98eef785832c7c01d470e745574cb4614910943c Mon Sep 17 00:00:00 2001 From: Emmanuel Benoit Date: Wed, 11 Jan 2023 07:21:50 +0100 Subject: [PATCH] Clippity clip clippy --- src/resolver.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/resolver.rs b/src/resolver.rs index 8bff238..7f3fe67 100644 --- a/src/resolver.rs +++ b/src/resolver.rs @@ -232,10 +232,9 @@ where 'b: 'a, { rs.define_this(); - methods - .iter() - .map(|method| rs.with_scope(|rs| resolve_function(rs, &method.params, &method.body))) - .collect() + methods.iter().try_for_each(|method| { + rs.with_scope(|rs| resolve_function(rs, &method.params, &method.body)) + }) } /// Helper trait used to visit the various AST nodes with the resolver.