diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-01-03 23:32:44 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-01-03 23:32:44 +0100 |
commit | 0c76f0c9727a512475e29b5d099b5b7188f72052 (patch) | |
tree | d1c2b59458c62116447fa2d885113afe6a5378da /examples/zot/abook.rs | |
parent | 5f96d9981a6d041f5c8a464cda10a0dc371060f8 (diff) | |
download | rust-zotapi-0c76f0c9727a512475e29b5d099b5b7188f72052.tar.gz rust-zotapi-0c76f0c9727a512475e29b5d099b5b7188f72052.tar.bz2 rust-zotapi-0c76f0c9727a512475e29b5d099b5b7188f72052.zip |
Move Client out of the api objects.
Also make constructor functions in the zotapi namespace.
Diffstat (limited to 'examples/zot/abook.rs')
-rw-r--r-- | examples/zot/abook.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/zot/abook.rs b/examples/zot/abook.rs index a16f68c..b710fa7 100644 --- a/examples/zot/abook.rs +++ b/examples/zot/abook.rs @@ -16,7 +16,7 @@ */ pub fn fetch(client: &zotapi::Client, raw: bool) { - match client.abook().fetch() { + match zotapi::abook().fetch(&client) { Ok(payload) => { if raw { println!("{}", &payload); |