Merge branch 'master' into rich-flairs

This commit is contained in:
robrobinbin 2021-01-13 08:27:39 +01:00 committed by GitHub
commit c6627ceece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 47 additions and 27 deletions

View file

@ -117,7 +117,7 @@ async fn parse_comments(json: &serde_json::Value) -> Vec<Comment> {
// Separate the comment JSON into a Vector of comments
let comment_data = match json["data"]["children"].as_array() {
Some(f) => f.to_owned(),
None => { let v = Vec::new(); v }
None => Vec::new(),
};
let mut comments: Vec<Comment> = Vec::new();