Replace trim_left_matches() (deprecated) for trim_start_matches() (#110)

This commit is contained in:
Bart Ribbers 2019-02-23 18:02:04 +01:00 committed by iceiix
parent ed10ca43b8
commit 04d9fed5c5
1 changed files with 1 additions and 1 deletions

View File

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