Replace trim_left_matches() (deprecated) for trim_start_matches() (#110)
This commit is contained in:
parent
7624b89292
commit
3e176fa7c2
|
@ -113,7 +113,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_left_matches('0');
|
||||
let hash_val = hash_str.trim_start_matches('0');
|
||||
let hash_str = if negative {
|
||||
"-".to_owned() + &hash_val[..]
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue