We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d20369 + d0426fd commit 50a6c79Copy full SHA for 50a6c79
src/libcore/hash/sip.rs
@@ -138,7 +138,10 @@ impl SipHasher {
138
self.v3 = self.k1 ^ 0x7465646279746573;
139
self.ntail = 0;
140
}
141
+}
142
143
+#[stable(feature = "rust1", since = "1.0.0")]
144
+impl Hasher for SipHasher {
145
#[inline]
146
fn write(&mut self, msg: &[u8]) {
147
let length = msg.len();
@@ -183,14 +186,6 @@ impl SipHasher {
183
186
self.tail = u8to64_le!(msg, i, left);
184
187
self.ntail = left;
185
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
- }
194
195
196
fn finish(&self) -> u64 {
0 commit comments