Formatting fix

This commit is contained in:
curlpipe 2021-05-07 22:51:24 +01:00
parent e16e828876
commit 264c28d627
No known key found for this signature in database
GPG Key ID: 8111BDA886A75A63
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ async fn subreddit(sub: &str) -> Result<Subreddit, String> {
let active: i64 = res["data"]["accounts_active"].as_u64().unwrap_or_default() as i64;
// Fetch subreddit icon either from the community_icon or icon_img value
let community_icon: &str = res["data"]["community_icon"].as_str().unwrap();
let community_icon: &str = res["data"]["community_icon"].as_str().unwrap();
let icon = if community_icon.is_empty() { val(&res, "icon_img") } else { community_icon.to_string() };
let sub = Subreddit {