From 3e176fa7c20d16718fd4f9922e989274c06fbbce Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Sat, 23 Feb 2019 18:02:04 +0100 Subject: [PATCH] Replace trim_left_matches() (deprecated) for trim_start_matches() (#110) --- src/protocol/mojang.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/mojang.rs b/src/protocol/mojang.rs index d554b04..078488c 100644 --- a/src/protocol/mojang.rs +++ b/src/protocol/mojang.rs @@ -113,7 +113,7 @@ impl Profile { twos_compliment(&mut hash); } let hash_str = hash.iter().map(|b| format!("{:02x}", b)).collect::>().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 {