diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-03 00:01:51 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-03 00:01:51 +0200 |
commit | 9aa0cceedb52ddea5b08af7372f4c87f60e401d4 (patch) | |
tree | 557edb300af17925173b54ad1cb1b5655ccabd17 /client/src | |
parent | 8e33fcdfbd9df042c0cfd8e9a2084993313961c9 (diff) | |
download | jellything-9aa0cceedb52ddea5b08af7372f4c87f60e401d4.tar jellything-9aa0cceedb52ddea5b08af7372f4c87f60e401d4.tar.bz2 jellything-9aa0cceedb52ddea5b08af7372f4c87f60e401d4.tar.zst |
not exposing private data
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/lib.rs b/client/src/lib.rs index 4b111d1..39bd1fd 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -1,5 +1,5 @@ use anyhow::Result; -use jellycommon::Node; +use jellycommon::NodePublic; use reqwest::{ header::{HeaderMap, HeaderValue}, Client, @@ -69,7 +69,7 @@ impl Session { format!("session={}", self.session_token) } - pub async fn node(&self, id: &str) -> Result<Node> { + pub async fn node(&self, id: &str) -> Result<NodePublic> { Ok(self .client .get(format!("{}/n/{id}", self.instance.base())) |