Skip to content

Commit 033a775

Browse files
committed
Fix the lastlogx PartialEq impl
1 parent 5d3c5b9 commit 033a775

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
@@ -481,8 +481,12 @@ cfg_if! {
481481
fn eq(&self, other: &lastlogx) -> bool {
482482
self.ll_tv == other.ll_tv
483483
&& self.ll_line == other.ll_line
484-
&& self.ll_host == other.ll_host
485484
&& self.ll_ss == other.ll_ss
485+
&& self
486+
.ll_host
487+
.iter()
488+
.zip(other.ll_host.iter())
489+
.all(|(a,b)| a == b)
486490
}
487491
}
488492

0 commit comments

Comments
 (0)