redactor mut
parent
97369e6452
commit
b58c58b165
|
|
@ -41,7 +41,7 @@ impl Requester {
|
||||||
let resp = req.send().await;
|
let resp = req.send().await;
|
||||||
Ok(from_str(&resp?.text().await?)?)
|
Ok(from_str(&resp?.text().await?)?)
|
||||||
}
|
}
|
||||||
pub async fn get_conferences_from_value(mut conferences: Value) -> anyhow::Result<Conferences> {
|
pub async fn get_conferences_from_value(conferences: Value) -> anyhow::Result<Conferences> {
|
||||||
let mut hashset = Conferences::new();
|
let mut hashset = Conferences::new();
|
||||||
match conferences.get("data") {
|
match conferences.get("data") {
|
||||||
None => return Err(anyhow::Error::msg("Invalid JSON format: no `data` field")),
|
None => return Err(anyhow::Error::msg("Invalid JSON format: no `data` field")),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue