Fix compilation error

This commit is contained in:
Sakuhl 2018-01-02 00:23:32 +01:00
parent ba0d6c7709
commit 2a9a7d55e9

View File

@ -26,7 +26,7 @@ pub fn guild_by_prefix(prefix: &str) -> Result<Option<GuildEntry>, Box<Error>> {
let top_100: Top100Guilds = serde_json::from_reader(resp)?; let top_100: Top100Guilds = serde_json::from_reader(resp)?;
for guild in &top_100.data { for guild in top_100.data.into_iter() {
if guild.prefix == prefix { if guild.prefix == prefix {
return Ok(Some(guild)); return Ok(Some(guild));
} }