From 0b232f2edc23570ef86f5b1136d2431315896d0e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 5 May 2022 10:49:03 +0200 Subject: [PATCH] drop mut on some http client usages thanks to commit 70142e607dda43fc778f39d52dc7bb3bba088cd3 from proxmox repos's proxmox-http crate Signed-off-by: Thomas Lamprecht --- src/api2/node/apt.rs | 2 +- src/tools/subscription.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api2/node/apt.rs b/src/api2/node/apt.rs index 99d155a7..28c38470 100644 --- a/src/api2/node/apt.rs +++ b/src/api2/node/apt.rs @@ -239,7 +239,7 @@ fn apt_get_changelog(param: Value) -> Result { } let proxy_config = read_and_update_proxy_config()?; - let mut client = pbs_simple_http(proxy_config); + let client = pbs_simple_http(proxy_config); let changelog_url = &pkg_info[0].change_log_url; // FIXME: use 'apt-get changelog' for proxmox packages as well, once repo supports it diff --git a/src/tools/subscription.rs b/src/tools/subscription.rs index 673f66c5..94a62675 100644 --- a/src/tools/subscription.rs +++ b/src/tools/subscription.rs @@ -115,7 +115,7 @@ async fn register_subscription( None }; - let mut client = pbs_simple_http(proxy_config); + let client = pbs_simple_http(proxy_config); let uri = "https://shop.proxmox.com/modules/servers/licensing/verify.php"; let query = json_object_to_query(params)?;