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/abconfig.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/abconfig.rs')
-rw-r--r-- | src/abconfig.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abconfig.rs b/src/abconfig.rs index f1622c7..6f9adbe 100644 --- a/src/abconfig.rs +++ b/src/abconfig.rs @@ -15,7 +15,7 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. use crate::{ - client::{self, Client}, + client::Client, error::Error, }; @@ -29,6 +29,6 @@ impl<'a> ABConfigFetcher<'a> { } pub fn fetch(&self) -> Result<String, Error> { - self.client.fetch_stream(client::ZOTAPI_ABCONFIG_PATH, &()) + self.client.fetch_stream("abconfig", &()) } } |