Skip to content

Commit c0c1e48

Browse files
corrections to Offset trait
1 parent b7d0f88 commit c0c1e48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

geo/src/algorithm/offset/offset_trait.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ where
140140
//println!("CASE 1 - extend");
141141
vec![intersection]
142142
},
143-
144143
(TrueIntersectionPoint, FalseIntersectionPoint(_)) => {
145144
//println!("CASE 1 - extend");
146145
vec![intersection]
@@ -149,7 +148,7 @@ where
149148
//println!("CASE 1 - extend");
150149
vec![intersection]
151150
},
152-
(FalseIntersectionPoint(BeforeStart), FalseIntersectionPoint(_)) => {
151+
(FalseIntersectionPoint(AfterEnd), FalseIntersectionPoint(_)) => {
153152
// TODO: Mitre limit logic goes here
154153
//println!("CASE 2 - extend");
155154
vec![intersection]

geo/src/algorithm/offset/slice_itertools.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
///
33
/// ```ignore
44
/// let items = vec![1, 2, 3, 4, 5];
5-
/// let actual_result: Vec<(i32, i32)> = pairwise(&items[..]).map(|(a, b)| (*a, *b)).collect();
5+
/// let actual_result: Vec<(i32, i32)> =
6+
/// pairwise(&items[..]).map(|(a, b)| (*a, *b)).collect();
67
/// let expected_result = vec![(1, 2), (2, 3), (3, 4), (4, 5)];
78
/// ```
89
pub(super) fn pairwise<T>(slice: &[T]) -> std::iter::Zip<std::slice::Iter<T>, std::slice::Iter<T>> {

0 commit comments

Comments
 (0)