From f068779adf2f08cc1e283d7d88a39d7cc7c5da43 Mon Sep 17 00:00:00 2001 From: Sakuhl <2012collector@gmail.com> Date: Tue, 2 Jan 2018 23:23:58 +0100 Subject: [PATCH] Fix --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 495399c..77df130 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,7 +25,7 @@ pub fn guild_by_prefix(prefix: &str) -> Result, Box> { let top_100 = guild_leaderboard()?; for guild in top_100.data.into_iter() { - if guild.prefix.to_ascii_lowercase() == prefix.to_ascii_lowercase() { + if guild.prefix.to_lowercase() == prefix.to_lowercase() { return Ok(Some(guild)); } }