Skip to content

Commit 50a6c79

Browse files
committed
Auto merge of #28375 - tbu-:pr_sip_write, r=alexcrichton
2 parents 4d20369 + d0426fd commit 50a6c79

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/libcore/hash/sip.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ impl SipHasher {
138138
self.v3 = self.k1 ^ 0x7465646279746573;
139139
self.ntail = 0;
140140
}
141+
}
141142

143+
#[stable(feature = "rust1", since = "1.0.0")]
144+
impl Hasher for SipHasher {
142145
#[inline]
143146
fn write(&mut self, msg: &[u8]) {
144147
let length = msg.len();
@@ -183,14 +186,6 @@ impl SipHasher {
183186
self.tail = u8to64_le!(msg, i, left);
184187
self.ntail = left;
185188
}
186-
}
187-
188-
#[stable(feature = "rust1", since = "1.0.0")]
189-
impl Hasher for SipHasher {
190-
#[inline]
191-
fn write(&mut self, msg: &[u8]) {
192-
self.write(msg)
193-
}
194189

195190
#[inline]
196191
fn finish(&self) -> u64 {

0 commit comments

Comments
 (0)