diff --git a/src/easy/list.rs b/src/easy/list.rs index 3946ec2a9..fb13c86ff 100644 --- a/src/easy/list.rs +++ b/src/easy/list.rs @@ -46,7 +46,7 @@ impl List { } /// Returns an iterator over the nodes in this list. - pub fn iter(&self) -> Iter { + pub fn iter(&self) -> Iter<'_> { Iter { _me: self, cur: self.raw, diff --git a/src/version.rs b/src/version.rs index 9a1a10597..cb841b65c 100644 --- a/src/version.rs +++ b/src/version.rs @@ -203,7 +203,7 @@ impl Version { /// Returns an iterator over the list of protocols that this build of /// libcurl supports. - pub fn protocols(&self) -> Protocols { + pub fn protocols(&self) -> Protocols<'_> { unsafe { Protocols { _inner: self,