Skip to content

Commit eba3aa8

Browse files
authored
Merge pull request #3645 from bzEq/lifetime
Fix hidden lifetime parameter
2 parents cb61441 + f6cd046 commit eba3aa8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/unix/aix/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ cfg_if! {
574574
}
575575
impl Eq for __sigaction_sa_union {}
576576
impl ::fmt::Debug for __sigaction_sa_union {
577-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
577+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
578578
f.debug_struct("__sigaction_sa_union")
579579
.field("__su_handler", unsafe { &self.__su_handler })
580580
.field("__su_sigaction", unsafe { &self.__su_sigaction })
@@ -600,7 +600,7 @@ cfg_if! {
600600
}
601601
impl Eq for sigaction {}
602602
impl ::fmt::Debug for sigaction {
603-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
603+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
604604
let mut struct_formatter = f.debug_struct("sigaction");
605605
struct_formatter.field("sa_union", &self.sa_union);
606606
struct_formatter.field("sa_mask", &self.sa_mask);
@@ -627,7 +627,7 @@ cfg_if! {
627627
}
628628
impl Eq for __poll_ctl_ext_u {}
629629
impl ::fmt::Debug for __poll_ctl_ext_u {
630-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
630+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
631631
f.debug_struct("__poll_ctl_ext_u")
632632
.field("addr", unsafe { &self.addr })
633633
.field("data32", unsafe { &self.data32 })
@@ -658,7 +658,7 @@ cfg_if! {
658658
}
659659
impl Eq for poll_ctl_ext {}
660660
impl ::fmt::Debug for poll_ctl_ext {
661-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
661+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
662662
let mut struct_formatter = f.debug_struct("poll_ctl_ext");
663663
struct_formatter.field("version", &self.version);
664664
struct_formatter.field("command", &self.command);

src/unix/aix/powerpc64.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ cfg_if! {
307307
}
308308
impl Eq for siginfo_t {}
309309
impl ::fmt::Debug for siginfo_t {
310-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
310+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
311311
let mut struct_formatter = f.debug_struct("siginfo_t");
312312
struct_formatter.field("si_signo", &self.si_signo);
313313
struct_formatter.field("si_errno", &self.si_errno);
@@ -347,7 +347,7 @@ cfg_if! {
347347
}
348348
impl Eq for _kernel_simple_lock {}
349349
impl ::fmt::Debug for _kernel_simple_lock {
350-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
350+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
351351
f.debug_struct("_kernel_simple_lock")
352352
.field("_slock", unsafe { &self._slock })
353353
.field("_slockp", unsafe { &self._slockp })
@@ -374,7 +374,7 @@ cfg_if! {
374374
}
375375
impl Eq for fileops_t {}
376376
impl ::fmt::Debug for fileops_t {
377-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
377+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
378378
let mut struct_formatter = f.debug_struct("fileops_t");
379379
struct_formatter.field("fo_rw", &self.fo_rw);
380380
struct_formatter.field("fo_ioctl", &self.fo_ioctl);
@@ -415,7 +415,7 @@ cfg_if! {
415415
}
416416
impl Eq for file {}
417417
impl ::fmt::Debug for file {
418-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
418+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
419419
let mut struct_formatter = f.debug_struct("file");
420420
struct_formatter.field("f_flag", &self.f_flag);
421421
struct_formatter.field("f_count", &self.f_count);
@@ -466,7 +466,7 @@ cfg_if! {
466466
}
467467
impl Eq for __ld_info_file {}
468468
impl ::fmt::Debug for __ld_info_file {
469-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
469+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
470470
f.debug_struct("__ld_info_file")
471471
.field("_ldinfo_fd", unsafe { &self._ldinfo_fd })
472472
.field("_ldinfo_fp", unsafe { &self._ldinfo_fp })
@@ -498,7 +498,7 @@ cfg_if! {
498498
}
499499
impl Eq for ld_info {}
500500
impl ::fmt::Debug for ld_info {
501-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
501+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
502502
let mut struct_formatter = f.debug_struct("ld_info");
503503
struct_formatter.field("ldinfo_next", &self.ldinfo_next);
504504
struct_formatter.field("ldinfo_flags", &self.ldinfo_flags);
@@ -535,7 +535,7 @@ cfg_if! {
535535
}
536536
impl Eq for __pollfd_ext_u {}
537537
impl ::fmt::Debug for __pollfd_ext_u {
538-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
538+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
539539
f.debug_struct("__pollfd_ext_u")
540540
.field("addr", unsafe { &self.addr })
541541
.field("data32", unsafe { &self.data32 })
@@ -563,7 +563,7 @@ cfg_if! {
563563
}
564564
impl Eq for pollfd_ext {}
565565
impl ::fmt::Debug for pollfd_ext {
566-
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
566+
fn fmt(&self, f: &mut ::fmt::Formatter<'_>) -> ::fmt::Result {
567567
let mut struct_formatter = f.debug_struct("pollfd_ext");
568568
struct_formatter.field("fd", &self.fd);
569569
struct_formatter.field("events", &self.events);

0 commit comments

Comments
 (0)