From c21a5521e23856205b968d0fee3d2bff5e49c1d6 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 22 Dec 2020 13:04:02 +0000 Subject: [PATCH] After rebase, drop the use of the deprecated num_coords() method. --- geo-types/src/line_string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geo-types/src/line_string.rs b/geo-types/src/line_string.rs index ca166a14b..38f6647e7 100644 --- a/geo-types/src/line_string.rs +++ b/geo-types/src/line_string.rs @@ -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; } @@ -359,7 +359,7 @@ impl + CoordinateType> AbsDiffEq for LineString { /// 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());