From 04d9fed5c5cf68f54f4c6da61d093d5206739d2d 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) --- protocol/src/protocol/mojang.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/protocol/mojang.rs b/protocol/src/protocol/mojang.rs index d554b04..078488c 100644 --- a/protocol/src/protocol/mojang.rs +++ b/protocol/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 {