Stop a private method on SipHasher from shadowing Hasher::write

This commit is contained in:
Tobias Bucher 2015-09-12 15:25:39 +01:00
parent d89a10b0a6
commit d0426fd316

View File

@ -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 {