[librsvg: 15/19] Remove lifetime annotations that can be elided




commit 2f5db26cb1ee536b42bc3c1b3009b7201241c820
Author: Sven Neumann <sven svenfoo org>
Date:   Fri Aug 21 12:18:19 2020 +0200

    Remove lifetime annotations that can be elided
    
    See https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes

 rsvg_internals/src/path_builder.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/path_builder.rs b/rsvg_internals/src/path_builder.rs
index f53f3dfa8..8c7dce992 100644
--- a/rsvg_internals/src/path_builder.rs
+++ b/rsvg_internals/src/path_builder.rs
@@ -626,7 +626,7 @@ fn is_subpath_zero_length(mut subpath: impl Iterator<Item = PathCommand>) -> ((f
 
 impl Path {
     /// Get an iterator over a path `Subpath`s.
-    fn iter_subpath<'a>(&'a self) -> SubPathIter<'a> {
+    fn iter_subpath(&self) -> SubPathIter {
         SubPathIter {
             path: &self,
             next_start: 0,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]