Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Aug 18, 2024
1 parent 04649eb commit 0da8750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions geo/src/algorithm/relate/geomgraph/planar_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ impl<F: GeoFloat> PlanarGraph<F> {
let mut graph = Self {
nodes: self.nodes.clone(),
// deep copy edges
edges: self
.edges
.iter()
.map(|e| e.clone())
.collect(),
edges: self.edges.iter().map(|e| e.clone()).collect(),
};
assert_eq!(from_arg_index, 0);
if from_arg_index != to_arg_index {
Expand Down
4 changes: 2 additions & 2 deletions geo/src/algorithm/relate/relate_operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ where
// .graph_a
// .compute_edge_intersections(&mut self.graph_b, Box::new(self.line_intersector.clone()));


// this is a copy of the above functionality to satisfy rust borrowing rules.
// from here [...
let mut segment_intersector = SegmentIntersector::new(Box::new(self.line_intersector.clone()), false);
let mut segment_intersector =
SegmentIntersector::new(Box::new(self.line_intersector.clone()), false);
segment_intersector.set_boundary_nodes(
self.graph_a.boundary_nodes().cloned().collect(),
self.graph_b.boundary_nodes().cloned().collect(),
Expand Down

0 comments on commit 0da8750

Please sign in to comment.