Skip to content

Commit 8f47d5b

Browse files
gautehurschrei
authored andcommitted
fmt
1 parent f65e815 commit 8f47d5b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

geo/src/algorithm/relate/geomgraph/planar_graph.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ impl<F: GeoFloat> PlanarGraph<F> {
3333
let mut graph = Self {
3434
nodes: self.nodes.clone(),
3535
// deep copy edges
36-
edges: self
37-
.edges
38-
.iter()
39-
.map(|e| e.clone())
40-
.collect(),
36+
edges: self.edges.iter().map(|e| e.clone()).collect(),
4137
};
4238
assert_eq!(from_arg_index, 0);
4339
if from_arg_index != to_arg_index {

geo/src/algorithm/relate/relate_operation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ where
8989
// .graph_a
9090
// .compute_edge_intersections(&mut self.graph_b, Box::new(self.line_intersector.clone()));
9191

92-
9392
// this is a copy of the above functionality to satisfy rust borrowing rules.
9493
// from here [...
95-
let mut segment_intersector = SegmentIntersector::new(Box::new(self.line_intersector.clone()), false);
94+
let mut segment_intersector =
95+
SegmentIntersector::new(Box::new(self.line_intersector.clone()), false);
9696
segment_intersector.set_boundary_nodes(
9797
self.graph_a.boundary_nodes().cloned().collect(),
9898
self.graph_b.boundary_nodes().cloned().collect(),

0 commit comments

Comments
 (0)