From c0f357924d8c96d2f8510055ecd79ed0f3e1840b Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Wed, 29 Aug 2012 21:20:10 -0700 Subject: [PATCH] libcore: vec::u8::hash is pure. --- src/libcore/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 448678abf7c6..984092e9a584 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1877,7 +1877,7 @@ mod u8 { pure fn gt(a: &~[u8], b: &~[u8]) -> bool { cmp(a, b) > 0 } /// Byte-vec hash function - fn hash(s: &~[u8]) -> uint { + pure fn hash(s: &~[u8]) -> uint { hash::hash_bytes(*s) as uint }