diff --git a/geo/src/algorithm/offset/offset_trait.rs b/geo/src/algorithm/offset/offset_trait.rs index e11431dc0..b4997a9be 100644 --- a/geo/src/algorithm/offset/offset_trait.rs +++ b/geo/src/algorithm/offset/offset_trait.rs @@ -140,7 +140,6 @@ where //println!("CASE 1 - extend"); vec![intersection] }, - (TrueIntersectionPoint, FalseIntersectionPoint(_)) => { //println!("CASE 1 - extend"); vec![intersection] @@ -149,7 +148,7 @@ where //println!("CASE 1 - extend"); vec![intersection] }, - (FalseIntersectionPoint(BeforeStart), FalseIntersectionPoint(_)) => { + (FalseIntersectionPoint(AfterEnd), FalseIntersectionPoint(_)) => { // TODO: Mitre limit logic goes here //println!("CASE 2 - extend"); vec![intersection] diff --git a/geo/src/algorithm/offset/slice_itertools.rs b/geo/src/algorithm/offset/slice_itertools.rs index 79c77d8b8..b1e410619 100644 --- a/geo/src/algorithm/offset/slice_itertools.rs +++ b/geo/src/algorithm/offset/slice_itertools.rs @@ -2,7 +2,8 @@ /// /// ```ignore /// let items = vec![1, 2, 3, 4, 5]; -/// let actual_result: Vec<(i32, i32)> = pairwise(&items[..]).map(|(a, b)| (*a, *b)).collect(); +/// let actual_result: Vec<(i32, i32)> = +/// pairwise(&items[..]).map(|(a, b)| (*a, *b)).collect(); /// let expected_result = vec![(1, 2), (2, 3), (3, 4), (4, 5)]; /// ``` pub(super) fn pairwise(slice: &[T]) -> std::iter::Zip, std::slice::Iter> {