Update Dependencies

This commit is contained in:
spikecodes 2020-11-16 20:36:36 -08:00
parent e5961a3922
commit 4350d5b7b3
5 changed files with 141 additions and 101 deletions

View file

@ -113,7 +113,11 @@ pub async fn posts(sub: String, sort: &String) -> Vec<Post> {
flair: Flair(
val(post, "link_flair_text").await,
val(post, "link_flair_background_color").await,
if val(post, "link_flair_text_color").await == "dark" { "black".to_string() } else { "white".to_string() }
if val(post, "link_flair_text_color").await == "dark" {
"black".to_string()
} else {
"white".to_string()
},
),
});
}