From f7cb99985fa1efa378f4cfac273b62b0f35f14e9 Mon Sep 17 00:00:00 2001 From: Cole Reynolds Date: Fri, 8 May 2015 23:14:40 -0400 Subject: [PATCH] stop str.hash() from writing an extra byte --- src/libcore/hash/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs index e848a44e01ce0..d4033d1aa8b31 100644 --- a/src/libcore/hash/mod.rs +++ b/src/libcore/hash/mod.rs @@ -232,7 +232,6 @@ mod impls { impl Hash for str { fn hash(&self, state: &mut H) { state.write(self.as_bytes()); - state.write_u8(0xff) } }