aboutsummaryrefslogtreecommitdiffstats
path: root/src/abook.rs
diff options
context:
space:
mode:
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", &())
}
}