Skip to content

Commit 5d3c5b9

Browse files
committed
Fix the PartialEq utmpx impl
1 parent 40f9253 commit 5d3c5b9

File tree

1 file changed

+5
-1
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+5
-1
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,11 @@ cfg_if! {
428428
&& self.ut_session == other.ut_session
429429
&& self.ut_tv == other.ut_tv
430430
&& self.ut_ss == other.ut_ss
431-
&& self.ut_pad == other.ut_pad
431+
&& self
432+
.ut_pad
433+
.iter()
434+
.zip(other.ut_pad.iter())
435+
.all(|(a,b)| a == b)
432436
&& self
433437
.ut_host
434438
.iter()

0 commit comments

Comments
 (0)