Skip to content

Commit a4d31ca

Browse files
committed
clippy: fix "hiding a lifetime" warnings
from mismatched_lifetime_syntaxes lint
1 parent dc6b632 commit a4d31ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/uu/hostname/src/net/unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl InterfaceAddresses {
240240
}
241241
}
242242

243-
pub(crate) fn iter(&self) -> InterfaceAddressesIter {
243+
pub(crate) fn iter(&self) -> InterfaceAddressesIter<'_> {
244244
InterfaceAddressesIter {
245245
_ia: self,
246246
ptr: Some(self.0),
@@ -304,7 +304,7 @@ impl AddressInfo {
304304
unsafe { self.0.as_ref() }
305305
}
306306

307-
pub(crate) fn iter(&self) -> AddressInfoIter {
307+
pub(crate) fn iter(&self) -> AddressInfoIter<'_> {
308308
AddressInfoIter {
309309
_ia: self,
310310
ptr: Some(self.0),

src/uu/hostname/src/net/windows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl InterfaceAddresses {
241241
}
242242
}
243243

244-
pub(crate) fn iter(&self) -> InterfaceAddressesIter {
244+
pub(crate) fn iter(&self) -> InterfaceAddressesIter<'_> {
245245
InterfaceAddressesIter {
246246
_ia: self,
247247
ptr: self.list,
@@ -337,7 +337,7 @@ impl AddressInfo {
337337
}
338338
}
339339

340-
pub(crate) fn iter(&self) -> AddressInfoIter {
340+
pub(crate) fn iter(&self) -> AddressInfoIter<'_> {
341341
AddressInfoIter {
342342
_ia: self,
343343
ptr: Some(self.0),

0 commit comments

Comments
 (0)