diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-27 04:46:10 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-27 04:46:10 +0000 |
commit | cb1b144e48ee357a76f551433d4886f092d259c8 (patch) | |
tree | 15606dc621e4d68f3bf3e9d27a44e6fd02a00fc5 /src/helix/namespaces/clips.rs | |
parent | 2e08d0c8abbfb9f989c61acb4f6c580719a65b42 (diff) |
Use a generic client for both helix and kraken
Diffstat (limited to 'src/helix/namespaces/clips.rs')
-rw-r--r-- | src/helix/namespaces/clips.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helix/namespaces/clips.rs b/src/helix/namespaces/clips.rs index a73d2e9..28b66f7 100644 --- a/src/helix/namespaces/clips.rs +++ b/src/helix/namespaces/clips.rs @@ -1,10 +1,10 @@ use std::collections::BTreeMap; use super::super::models::{DataContainer, Clip}; use super::super::Client; -use super::super::ClientTrait; -use super::super::RatelimitKey; use super::Namespace; +use crate::client::{RatelimitKey, ClientTrait, ApiRequest}; + pub struct Clips {} type ClipsNamespace = Namespace<Clips>; @@ -22,12 +22,12 @@ impl Client { } } -use super::super::ApiRequest; use reqwest::Method; pub fn clip(client: Client, id: &str) -> ApiRequest<DataContainer<Clip>> { + let client = client.inner; let url = String::from("https://") + client.domain() + "/helix/clips" + "?id=" + id; |