summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrayJack <gr41.j4ck@gmail.com>2019-11-27 13:29:15 -0300
committerGrayJack <gr41.j4ck@gmail.com>2019-11-27 13:29:15 -0300
commit033a775459e4ba3aa6b9fc0fbacb2aa56b1218b2 (patch)
tree8842f3e923847c76cbda260e05c68f9b9d6924ab
parent5d3c5b9d40ff6bcb125ab4334f201c00cad178c1 (diff)
downloadrust-libc-033a775459e4ba3aa6b9fc0fbacb2aa56b1218b2.tar.gz
Fix the lastlogx PartialEq impl
-rw-r--r--src/unix/bsd/netbsdlike/netbsd/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index 69c1efbbcd..91ecd62a6b 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -481,8 +481,12 @@ cfg_if! {
fn eq(&self, other: &lastlogx) -> bool {
self.ll_tv == other.ll_tv
&& self.ll_line == other.ll_line
- && self.ll_host == other.ll_host
&& self.ll_ss == other.ll_ss
+ && self
+ .ll_host
+ .iter()
+ .zip(other.ll_host.iter())
+ .all(|(a,b)| a == b)
}
}