From 5d3c5b9d40ff6bcb125ab4334f201c00cad178c1 Mon Sep 17 00:00:00 2001 From: GrayJack Date: Wed, 20 Nov 2019 12:38:29 -0300 Subject: [PATCH] Fix the PartialEq utmpx impl --- src/unix/bsd/netbsdlike/netbsd/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 000ce443..69c1efbb 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -428,7 +428,11 @@ cfg_if! { && self.ut_session == other.ut_session && self.ut_tv == other.ut_tv && self.ut_ss == other.ut_ss - && self.ut_pad == other.ut_pad + && self + .ut_pad + .iter() + .zip(other.ut_pad.iter()) + .all(|(a,b)| a == b) && self .ut_host .iter()