aboutsummaryrefslogtreecommitdiffstats
path: root/src/abook.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-01-03 20:00:55 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-01-03 20:00:55 +0100
commit5f96d9981a6d041f5c8a464cda10a0dc371060f8 (patch)
treee4c3bae7ff9a02108a979e9840c3aa134fbc0425 /src/abook.rs
parent16a56f12cd2e66e10f8bb5e2c4026d3a7148e680 (diff)
downloadrust-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.rs5
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", &())
}
}