mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-04 20:30:37 +00:00
Resolve merge conflicts
This commit is contained in:
commit
b2ad2f636c
9 changed files with 57 additions and 70 deletions
|
@ -287,7 +287,7 @@ pub fn time(created: f64) -> (String, String) {
|
|||
|
||||
// val() function used to parse JSON from Reddit APIs
|
||||
pub fn val(j: &Value, k: &str) -> String {
|
||||
String::from(j["data"][k].as_str().unwrap_or_default())
|
||||
j["data"][k].as_str().unwrap_or_default().to_string()
|
||||
}
|
||||
|
||||
// Fetch posts of a user or subreddit and return a vector of posts and the "after" value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue