From d99083c47ddd31288ed1b688002388f6e68c5e04 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 13 Feb 2020 14:45:41 +0100 Subject: Refactor how ABConfigs are fetched. Introduce a `z()` menber function that creates the request object that we use for further configuring the requset. This eliminates the need to two fetch functions, and is meant to provide a consistent way of doing these requests. --- examples/zot/abconfig.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/zot/abconfig.rs b/examples/zot/abconfig.rs index a6454ac..2e357e4 100644 --- a/examples/zot/abconfig.rs +++ b/examples/zot/abconfig.rs @@ -18,7 +18,7 @@ use zotapi; pub fn fetch(client: &zotapi::Client) { - match zotapi::abconfig::fetch(&client) { + match zotapi::ABConfig::z().fetch(&client) { Ok(v) => { println!("Id: Chan: Cat: Key: Val: xchan:"); for entry in v { -- cgit v1.2.3