diff --git a/geo-types/src/geometry/line_string.rs b/geo-types/src/geometry/line_string.rs index f3faaf230..a131873cd 100644 --- a/geo-types/src/geometry/line_string.rs +++ b/geo-types/src/geometry/line_string.rs @@ -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. @@ -139,15 +138,9 @@ use std::fmt; pub struct LineString>(pub Vec); /// 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;