Skip to content

Commit f19936f

Browse files
authored
Fix mismatched_lifetime_syntaxes warning (alexcrichton#619)
This fixes the mismatched_lifetime_syntaxes warning which has started to appear on more recent versions of rustc.
1 parent c06de2a commit f19936f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/easy/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl List {
4646
}
4747

4848
/// Returns an iterator over the nodes in this list.
49-
pub fn iter(&self) -> Iter {
49+
pub fn iter(&self) -> Iter<'_> {
5050
Iter {
5151
_me: self,
5252
cur: self.raw,

src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Version {
203203

204204
/// Returns an iterator over the list of protocols that this build of
205205
/// libcurl supports.
206-
pub fn protocols(&self) -> Protocols {
206+
pub fn protocols(&self) -> Protocols<'_> {
207207
unsafe {
208208
Protocols {
209209
_inner: self,

0 commit comments

Comments
 (0)