diff --git a/geo/src/algorithm/bool_ops/mod.rs b/geo/src/algorithm/bool_ops/mod.rs index c02d11f2d..94d1317cc 100644 --- a/geo/src/algorithm/bool_ops/mod.rs +++ b/geo/src/algorithm/bool_ops/mod.rs @@ -220,9 +220,10 @@ impl BooleanOps for MultiPolygon { } /// Allows the unary union operation to be performed on any container which can produce items of type `Polygon` -impl UnaryUnion for C +impl UnaryUnion for Container where - C: IntoIterator> + Clone, + T: BoolOpsNum, + Container: IntoIterator> + Clone, Polygon: RTreeObject, { type Scalar = T; @@ -238,7 +239,6 @@ where accum1.union(&accum2) }; let rtree = RTree::bulk_load(self.clone().into_iter().collect()); - bottom_up_fold_reduce(&rtree, init, fold, reduce) } }