From f215b18121fec131287115869b663899a7ea59ae Mon Sep 17 00:00:00 2001 From: David Chu Date: Thu, 25 Jul 2024 16:29:12 -0700 Subject: [PATCH] fix(hydroflow_lang): Provide types for filter on antijoin (#1362) Co-authored-by: Shadaj Laddad --- hydroflow_lang/src/graph/ops/anti_join_multiset.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydroflow_lang/src/graph/ops/anti_join_multiset.rs b/hydroflow_lang/src/graph/ops/anti_join_multiset.rs index df9fb0e7cdcd..fed48518cb09 100644 --- a/hydroflow_lang/src/graph/ops/anti_join_multiset.rs +++ b/hydroflow_lang/src/graph/ops/anti_join_multiset.rs @@ -146,7 +146,7 @@ pub const ANTI_JOIN_MULTISET: OperatorConstraints = OperatorConstraints { #[allow(clippy::needless_borrow)] #neg_borrow.extend(#input_neg); - let #ident = #input_pos.filter(|x| { + let #ident = #input_pos.filter(|x: &(_,_)| { #[allow(clippy::needless_borrow)] #[allow(clippy::unnecessary_mut_passed)] !#neg_borrow.contains(&x.0) @@ -172,7 +172,7 @@ pub const ANTI_JOIN_MULTISET: OperatorConstraints = OperatorConstraints { #pos_borrow_ident.extend(#input_pos); #pos_borrow_ident[len..].iter() } - .filter(|x| { + .filter(|x: &&(_,_)| { #[allow(clippy::unnecessary_mut_passed)] !#neg_borrow.contains(&x.0) })