diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/lib.rs b/client/src/lib.rs index b80f705..96349ed 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -93,7 +93,7 @@ impl Session { pub async fn node_asset( &self, id: &str, - role: &str, + role: AssetRole, width: usize, mut writer: impl tokio::io::AsyncWrite + std::marker::Unpin, ) -> Result<()> { @@ -101,8 +101,9 @@ impl Session { let mut r = self .client .get(format!( - "{}/n/{id}/asset?role={role}&width={width}", - self.instance.base() + "{}/n/{id}/asset?role={}&width={width}", + self.instance.base(), + role.as_str() )) .send() .await?; |