Only trim_left the hash string
This commit is contained in:
parent
93bcd1e083
commit
a05e4e1296
|
@ -114,7 +114,7 @@ impl Profile {
|
|||
twos_compliment(&mut hash);
|
||||
}
|
||||
let hash_str = hash.iter().map(|b| format!("{:02x}", b)).collect::<Vec<String>>().join("");
|
||||
let hash_val = hash_str.trim_matches('0');
|
||||
let hash_val = hash_str.trim_left_matches('0');
|
||||
let hash_str = if negative {
|
||||
"-".to_owned() + &hash_val[..]
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue