From 8a904fa35e0a3855e8683a1da327eb65da1cb113 Mon Sep 17 00:00:00 2001 From: Matt Ehrnschwender Date: Fri, 2 Feb 2024 15:30:20 -0500 Subject: [PATCH] Clippy lint --- Payload_Type/thanatos/thanatos/agent_code/src/profiles/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Payload_Type/thanatos/thanatos/agent_code/src/profiles/http.rs b/Payload_Type/thanatos/thanatos/agent_code/src/profiles/http.rs index 1fb2d21..0a0bca2 100644 --- a/Payload_Type/thanatos/thanatos/agent_code/src/profiles/http.rs +++ b/Payload_Type/thanatos/thanatos/agent_code/src/profiles/http.rs @@ -109,7 +109,7 @@ pub mod profilevars { headers .get("User-Agent") .map(|agent| agent.to_owned()) - .unwrap_or_else(|| "".to_string()) + .unwrap_or_default() } // Helper function to get the other headers