Store hashes in special types so they aren't accidentally encoded as numbers
This commit is contained in:
parent
de96f3d873
commit
0445fbdd83
38 changed files with 274 additions and 138 deletions
|
@ -24,7 +24,7 @@ impl Svh {
|
|||
}
|
||||
|
||||
pub fn as_u64(&self) -> u64 {
|
||||
self.hash.to_smaller_hash()
|
||||
self.hash.to_smaller_hash().as_u64()
|
||||
}
|
||||
|
||||
pub fn to_string(&self) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue