There was an error while loading. Please reload this page.
1 parent 209f701 commit 36c0004Copy full SHA for 36c0004
1 file changed
desktop/src/agent.rs
@@ -66,10 +66,7 @@ impl AgentClient {
66
}
67
68
pub fn root_grant_icon_png(&self, package_name: &str) -> Result<Vec<u8>> {
69
- let url = format!(
70
- "{}/api/v1/root-grants/{package_name}/icon",
71
- self.base_url()
72
- );
+ let url = format!("{}/api/v1/root-grants/{package_name}/icon", self.base_url());
73
let response = self
74
.http
75
.get(&url)
@@ -79,7 +76,10 @@ impl AgentClient {
79
76
let body = response.text().unwrap_or_default();
80
77
return Err(anyhow!("HTTP icon fetch failed: {}", body.trim()));
81
78
82
- Ok(response.bytes().context("failed to read icon bytes")?.to_vec())
+ Ok(response
+ .bytes()
+ .context("failed to read icon bytes")?
+ .to_vec())
83
84
85
pub fn set_module_enabled(&self, module_id: &str, enabled: bool) -> Result<String> {
0 commit comments