File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments