Fix compilation error
This commit is contained in:
parent
ba0d6c7709
commit
2a9a7d55e9
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user