Skip to content

Commit

Permalink
corrections to Offset trait
Browse files Browse the repository at this point in the history
  • Loading branch information
thehappycheese committed Nov 18, 2022
1 parent 6bb1c75 commit 052d65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions geo/src/algorithm/offset/offset_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ where
//println!("CASE 1 - extend");
vec![intersection]
},

(TrueIntersectionPoint, FalseIntersectionPoint(_)) => {
//println!("CASE 1 - extend");
vec![intersection]
Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion geo/src/algorithm/offset/slice_itertools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(slice: &[T]) -> std::iter::Zip<std::slice::Iter<T>, std::slice::Iter<T>> {
Expand Down

0 comments on commit 052d65f

Please sign in to comment.