From 264c28d627c6c6fba44a34e4b6b03a4ea1f8d213 Mon Sep 17 00:00:00 2001 From: curlpipe <11898833+curlpipe@users.noreply.github.com> Date: Fri, 7 May 2021 22:51:24 +0100 Subject: [PATCH] Formatting fix --- src/subreddit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subreddit.rs b/src/subreddit.rs index 9194b31..d68eace 100644 --- a/src/subreddit.rs +++ b/src/subreddit.rs @@ -266,7 +266,7 @@ async fn subreddit(sub: &str) -> Result { 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 {