diff --git a/src/merge_join.rs b/src/merge_join.rs index 848a5363c..c83159186 100644 --- a/src/merge_join.rs +++ b/src/merge_join.rs @@ -109,7 +109,6 @@ impl T> FuncLR for F { } pub trait OrderingOrBool { - type Out; type MergeResult; fn left(left: L) -> Self::MergeResult; fn right(right: R) -> Self::MergeResult; @@ -121,7 +120,6 @@ pub trait OrderingOrBool { } impl Ordering> OrderingOrBool for MergeFuncLR { - type Out = Ordering; type MergeResult = EitherOrBoth; fn left(left: L) -> Self::MergeResult { EitherOrBoth::Left(left) @@ -149,7 +147,6 @@ impl Ordering> OrderingOrBool for MergeFuncLR bool> OrderingOrBool for MergeFuncLR { - type Out = bool; type MergeResult = Either; fn left(left: L) -> Self::MergeResult { Either::Left(left) @@ -171,7 +168,6 @@ impl bool> OrderingOrBool for MergeFuncLR bool> OrderingOrBool for F { - type Out = bool; type MergeResult = T; fn left(left: T) -> Self::MergeResult { left @@ -193,7 +189,6 @@ impl bool> OrderingOrBool for F { } impl OrderingOrBool for MergeLte { - type Out = bool; type MergeResult = T; fn left(left: T) -> Self::MergeResult { left @@ -235,11 +230,11 @@ where debug_fmt_fields!(MergeBy, left, right); } -impl Iterator for MergeBy +impl Iterator for MergeBy where I: Iterator, J: Iterator, - F: OrderingOrBool, + F: OrderingOrBool, { type Item = F::MergeResult; @@ -335,10 +330,10 @@ where } } -impl FusedIterator for MergeBy +impl FusedIterator for MergeBy where I: Iterator, J: Iterator, - F: OrderingOrBool, + F: OrderingOrBool, { }