Skip to content

Commit

Permalink
remove manual debug
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed May 18, 2024
1 parent 4cb5c07 commit 559dc72
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions geo-types/src/geometry/line_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use alloc::vec;
use alloc::vec::Vec;
use core::iter::FromIterator;
use core::ops::{Index, IndexMut};
use std::fmt;

/// An ordered collection of two or more [`Coord`]s, representing a
/// path between locations.
Expand Down Expand Up @@ -139,15 +138,9 @@ use std::fmt;
pub struct LineString<C: geo_traits::Coord = Point<f64>>(pub Vec<C>);

/// A [`Point`] iterator returned by the `points` method
#[derive(Debug)]
pub struct PointsIter<'a, C: geo_traits::Coord + 'a>(::core::slice::Iter<'a, C>);

impl<'a, C: fmt::Debug + geo_traits::Coord + 'a> fmt::Debug for PointsIter<'a, C> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let formatted = self.0.fmt(f);
f.debug_tuple("PointsIter").field(&formatted).finish()
}
}

impl<'a, C: geo_traits::Coord + 'a> Iterator for PointsIter<'a, C> {
type Item = Point<C::Scalar>;

Expand Down

0 comments on commit 559dc72

Please sign in to comment.