Skip to content

Commit

Permalink
After rebase, drop the use of the deprecated num_coords() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfrances107 committed Dec 24, 2020
1 parent 26a6a2d commit c21a552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geo-types/src/line_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ where
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool {
if self.num_coords() != other.num_coords() {
if self.0.len() != other.0.len() {
return false;
}

Expand Down Expand Up @@ -359,7 +359,7 @@ impl<T: AbsDiffEq<Epsilon = T> + CoordinateType> AbsDiffEq for LineString<T> {
/// approx::assert_relative_eq!(a, b, epsilon=0.1)
/// ```
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool {
if self.num_coords() != other.num_coords() {
if self.0.len() != other.0.len() {
return false;
}
let mut points_zipper = self.points_iter().zip(other.points_iter());
Expand Down

0 comments on commit c21a552

Please sign in to comment.