aboutsummaryrefslogtreecommitdiffstats
path: root/src/abconfig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/abconfig.rs')
-rw-r--r--src/abconfig.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/abconfig.rs b/src/abconfig.rs
index 6f9adbe..36b3427 100644
--- a/src/abconfig.rs
+++ b/src/abconfig.rs
@@ -19,16 +19,14 @@ use crate::{
error::Error,
};
-pub struct ABConfigFetcher<'a> {
- client: &'a Client,
-}
+pub struct ABConfig;
-impl<'a> ABConfigFetcher<'a> {
- pub fn new(client: &'a Client) -> ABConfigFetcher<'a> {
- ABConfigFetcher { client }
- }
+pub fn abconfig() -> ABConfig {
+ ABConfig {}
+}
- pub fn fetch(&self) -> Result<String, Error> {
- self.client.fetch_stream("abconfig", &())
+impl ABConfig {
+ pub fn fetch(&self, client: &Client) -> Result<String, Error> {
+ client.fetch_stream("abconfig", &())
}
}