Only trim_left the hash string

This commit is contained in:
Thinkofname 2016-03-28 22:10:33 +01:00
parent f3377c17c6
commit 9593f56eee
1 changed files with 1 additions and 1 deletions

View File

@ -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 {