diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs index 4dcd513a0d2d6..32a4f1e5bd761 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 {