diff options
| author | bors <bors@rust-lang.org> | 2015-09-12 19:23:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-12 19:23:05 +0000 |
| commit | 50a6c798d1a5e23ebf6fb4675786405e556c16a4 (patch) | |
| tree | 1fdb7abbef5d14766cc3373eec9737ca705ecf6d | |
| parent | 4d203699981c185381c0882dca0bf860ad31c2b9 (diff) | |
| parent | d0426fd3162e29aea54711494c9e4900b9735966 (diff) | |
| download | rust-50a6c798d1a5e23ebf6fb4675786405e556c16a4.tar.gz rust-50a6c798d1a5e23ebf6fb4675786405e556c16a4.zip | |
Auto merge of #28375 - tbu-:pr_sip_write, r=alexcrichton
| -rw-r--r-- | src/libcore/hash/sip.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs index 4dcd513a0d2..32a4f1e5bd7 100644 --- a/src/libcore/hash/sip.rs +++ b/src/libcore/hash/sip.rs @@ -138,7 +138,10 @@ impl SipHasher { self.v3 = self.k1 ^ 0x7465646279746573; self.ntail = 0; } +} +#[stable(feature = "rust1", since = "1.0.0")] +impl Hasher for SipHasher { #[inline] fn write(&mut self, msg: &[u8]) { let length = msg.len(); @@ -183,14 +186,6 @@ impl SipHasher { self.tail = u8to64_le!(msg, i, left); self.ntail = left; } -} - -#[stable(feature = "rust1", since = "1.0.0")] -impl Hasher for SipHasher { - #[inline] - fn write(&mut self, msg: &[u8]) { - self.write(msg) - } #[inline] fn finish(&self) -> u64 { |
