mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
fix NetBSD
This commit is contained in:
committed by
Ariel Ben-Yehuda
parent
617b413e18
commit
7dbbbf6607
@@ -719,7 +719,8 @@ impl Eq for Ipv4Addr {}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl hash::Hash for Ipv4Addr {
|
||||
fn hash<H: hash::Hasher>(&self, s: &mut H) {
|
||||
self.inner.s_addr.hash(s)
|
||||
// `inner` is #[repr(packed)], so we need to copy `s_addr`.
|
||||
{self.inner.s_addr}.hash(s)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user