Commit 8f47d5b 1 parent f65e815 commit 8f47d5b Copy full SHA for 8f47d5b
File tree 2 files changed +3
-7
lines changed
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> {
33
33
let mut graph = Self {
34
34
nodes : self . nodes . clone ( ) ,
35
35
// 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 ( ) ,
41
37
} ;
42
38
assert_eq ! ( from_arg_index, 0 ) ;
43
39
if from_arg_index != to_arg_index {
Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ where
89
89
// .graph_a
90
90
// .compute_edge_intersections(&mut self.graph_b, Box::new(self.line_intersector.clone()));
91
91
92
-
93
92
// this is a copy of the above functionality to satisfy rust borrowing rules.
94
93
// 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 ) ;
96
96
segment_intersector. set_boundary_nodes (
97
97
self . graph_a . boundary_nodes ( ) . cloned ( ) . collect ( ) ,
98
98
self . graph_b . boundary_nodes ( ) . cloned ( ) . collect ( ) ,
You can’t perform that action at this time.
0 commit comments