diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-01-03 20:00:55 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-01-03 20:00:55 +0100 |
commit | 5f96d9981a6d041f5c8a464cda10a0dc371060f8 (patch) | |
tree | e4c3bae7ff9a02108a979e9840c3aa134fbc0425 /src/abook.rs | |
parent | 16a56f12cd2e66e10f8bb5e2c4026d3a7148e680 (diff) | |
download | rust-zotapi-5f96d9981a6d041f5c8a464cda10a0dc371060f8.tar.gz rust-zotapi-5f96d9981a6d041f5c8a464cda10a0dc371060f8.tar.bz2 rust-zotapi-5f96d9981a6d041f5c8a464cda10a0dc371060f8.zip |
Use Url crate and move paths to submodules.
Diffstat (limited to 'src/abook.rs')
-rw-r--r-- | src/abook.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/abook.rs b/src/abook.rs index bcedf81..5f34ff5 100644 --- a/src/abook.rs +++ b/src/abook.rs @@ -15,10 +15,11 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. use crate::{ - client::{self, Client}, + client::Client, error::Error, }; + pub struct AbookFetcher<'a> { client: &'a Client, } @@ -29,6 +30,6 @@ impl<'a> AbookFetcher<'a> { } pub fn fetch(&self) -> Result<String, Error> { - self.client.fetch_stream(client::ZOTAPI_ABOOK_PATH, &()) + self.client.fetch_stream("abook", &()) } } |