Skip to content

Commit

Permalink
Replace trim_left_matches() (deprecated) for trim_start_matches() (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureTryOut authored and iceiix committed Feb 23, 2019
1 parent ed10ca4 commit 04d9fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/src/protocol/mojang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 04d9fed

Please sign in to comment.