Skip to content

Commit

Permalink
fix(hydroflow_lang): Provide types for filter on antijoin (#1362)
Browse files Browse the repository at this point in the history
Co-authored-by: Shadaj Laddad <shadaj@users.noreply.github.com>
  • Loading branch information
davidchuyaya and shadaj committed Jul 25, 2024
1 parent 993d43a commit f215b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydroflow_lang/src/graph/ops/anti_join_multiset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
})
Expand Down

0 comments on commit f215b18

Please sign in to comment.