libcore: vec::u8::hash is pure.
This commit is contained in:
parent
628b946186
commit
c0f357924d
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user