aboutsummaryrefslogtreecommitdiffstats
path: root/src/abconfig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/abconfig.rs')
-rw-r--r--src/abconfig.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abconfig.rs b/src/abconfig.rs
index 6348030..ebb7e2b 100644
--- a/src/abconfig.rs
+++ b/src/abconfig.rs
@@ -61,14 +61,14 @@ impl ABConfigRequest {
self
}
- pub fn fetch(&self, client: &Client) -> Result<Vec<ABConfig>, Error> {
+ pub async fn fetch(&self, client: &Client) -> Result<Vec<ABConfig>, Error> {
let mut req = client.get("abconfig");
if let Some(id) = self.abook_id {
req = req.query(&[("abook_id", id.to_string())]);
}
- Ok(serde_json::from_str(&req.send()?.text()?)?)
+ Ok(serde_json::from_str(&req.send().await?.text().await?)?)
}
}