aboutsummaryrefslogtreecommitdiffstats
path: root/src/group.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-01-03 20:00:55 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-01-03 20:00:55 +0100
commit5f96d9981a6d041f5c8a464cda10a0dc371060f8 (patch)
treee4c3bae7ff9a02108a979e9840c3aa134fbc0425 /src/group.rs
parent16a56f12cd2e66e10f8bb5e2c4026d3a7148e680 (diff)
downloadrust-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/group.rs')
-rw-r--r--src/group.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/group.rs b/src/group.rs
index 98d83d2..9135425 100644
--- a/src/group.rs
+++ b/src/group.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,
};
use serde::Serialize;
@@ -30,7 +30,7 @@ impl<'a> GroupFetcher<'a> {
}
pub fn fetch(&self) -> Result<String, Error> {
- self.client.fetch_stream(client::ZOTAPI_GROUP_PATH, &())
+ self.client.fetch_stream("group", &())
}
}
@@ -64,9 +64,6 @@ impl<'a> GroupMembersFetcher<'a> {
}
pub fn fetch(&self) -> Result<String, Error> {
- self.client.fetch_stream(
- client::ZOTAPI_GROUP_MEMBERS_PATH,
- &self.id.as_ref().unwrap(),
- )
+ self.client.fetch_stream("group_members", &self.id.as_ref().unwrap())
}
}