Skip to content

Commit

Permalink
Stop a private method on SipHasher from shadowing Hasher::write
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Sep 12, 2015
1 parent d89a10b commit d0426fd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/libcore/hash/sip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d0426fd

Please sign in to comment.