diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 15:09:47 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-31 15:17:12 -0700 |
| commit | 9a3d04ae7629f6f273643b3a14f106726842be6a (patch) | |
| tree | 7d8d5fc852d9256b31c7ac892ab3df07f0cfe62c /src/libstd/hash | |
| parent | f2a5c7a179ab0fc0e415918c1fc5d280a9e02ede (diff) | |
std: Switch field privacy as necessary
Diffstat (limited to 'src/libstd/hash')
| -rw-r--r-- | src/libstd/hash/sip.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libstd/hash/sip.rs b/src/libstd/hash/sip.rs index d448f4eeb37..d780c30d850 100644 --- a/src/libstd/hash/sip.rs +++ b/src/libstd/hash/sip.rs @@ -36,15 +36,15 @@ use super::{Hash, Hasher}; /// `SipState` computes a SipHash 2-4 hash over a stream of bytes. pub struct SipState { - priv k0: u64, - priv k1: u64, - priv length: uint, // how many bytes we've processed - priv v0: u64, // hash state - priv v1: u64, - priv v2: u64, - priv v3: u64, - priv tail: [u8, ..8], // unprocessed bytes - priv ntail: uint, // how many bytes in tail are valid + k0: u64, + k1: u64, + length: uint, // how many bytes we've processed + v0: u64, // hash state + v1: u64, + v2: u64, + v3: u64, + tail: [u8, ..8], // unprocessed bytes + ntail: uint, // how many bytes in tail are valid } // sadly, these macro definitions can't appear later, @@ -231,8 +231,8 @@ impl Default for SipState { /// `SipHasher` computes the SipHash algorithm from a stream of bytes. #[deriving(Clone)] pub struct SipHasher { - priv k0: u64, - priv k1: u64, + k0: u64, + k1: u64, } impl SipHasher { |
