From 75eb475f4db5c671240b70534534a6016ff53d97 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 12 Aug 2025 11:16:56 -0700 Subject: [PATCH] Fix mismatched_lifetime_syntaxes warning This fixes the mismatched_lifetime_syntaxes warning which has started to appear on more recent versions of rustc. --- src/easy/list.rs | 2 +- src/version.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,