Skip to content

Commit

Permalink
Auto merge of #28375 - tbu-:pr_sip_write, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Sep 12, 2015
2 parents 4d20369 + d0426fd commit 50a6c79
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 50a6c79

Please sign in to comment.