From 6aec3e03d889724c48e237334531ae3e8c73efb5 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 21 Feb 2021 11:17:51 +0000 Subject: [PATCH] Remove clippy warnings. #630 --- 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 a5f6b5d37..1509ed290 100644 --- a/geo-types/src/line_string.rs +++ b/geo-types/src/line_string.rs @@ -171,7 +171,7 @@ impl LineString { /// ); /// assert!(lines.next().is_none()); /// ``` - pub fn lines<'a>(&'a self) -> impl ExactSizeIterator + Iterator> + 'a { + pub fn lines(&'_ self) -> impl ExactSizeIterator + Iterator> + '_ { self.0.windows(2).map(|w| { // slice::windows(N) is guaranteed to yield a slice with exactly N elements unsafe { Line::new(*w.get_unchecked(0), *w.get_unchecked(1)) } @@ -179,7 +179,7 @@ impl LineString { } /// An iterator which yields the coordinates of a `LineString` as `Triangle`s - pub fn triangles<'a>(&'a self) -> impl ExactSizeIterator + Iterator> + 'a { + pub fn triangles(&'_ self) -> impl ExactSizeIterator + Iterator> + '_ { self.0.windows(3).map(|w| { // slice::windows(N) is guaranteed to yield a slice with exactly N elements unsafe {