From fe8b11eeec277c8442fdb5b14cdc4ee6ac44d2bc Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 15 Jan 2024 11:17:57 +0100 Subject: [PATCH] http: concat! user agent instead of format! Signed-off-by: Wolfgang Bumiller --- proxmox-http/src/client/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-http/src/client/sync.rs b/proxmox-http/src/client/sync.rs index 119d8d68..195ce98f 100644 --- a/proxmox-http/src/client/sync.rs +++ b/proxmox-http/src/client/sync.rs @@ -21,8 +21,8 @@ impl Client { fn agent(&self) -> Result { let mut builder = ureq::AgentBuilder::new(); - builder = builder.user_agent(self.options.user_agent.as_deref().unwrap_or(&format!( - "proxmox-sync-http-client/{}", + builder = builder.user_agent(self.options.user_agent.as_deref().unwrap_or(concat!( + "proxmox-sync-http-client/", env!("CARGO_PKG_VERSION") ))); -- 2.39.2