Store hashes in special types so they aren't accidentally encoded as numbers
This commit is contained in:
@@ -72,7 +72,7 @@ fn test_hash_isize() {
|
||||
assert_eq!(h.finalize(), expected);
|
||||
}
|
||||
|
||||
fn hash<T: HashStable<()>>(t: &T) -> u128 {
|
||||
fn hash<T: HashStable<()>>(t: &T) -> Hash128 {
|
||||
let mut h = StableHasher::new();
|
||||
let ctx = &mut ();
|
||||
t.hash_stable(ctx, &mut h);
|
||||
|
||||
Reference in New Issue
Block a user