From 2a9a7d55e9b4d311b121f2ca330cc0fb9de7c723 Mon Sep 17 00:00:00 2001 From: Sakuhl <2012collector@gmail.com> Date: Tue, 2 Jan 2018 00:23:32 +0100 Subject: [PATCH] Fix compilation error --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 33b3567..dd11c51 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,7 +26,7 @@ pub fn guild_by_prefix(prefix: &str) -> Result, Box> { 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 { return Ok(Some(guild)); }