Fix new clippy lints (#561)

This commit is contained in:
Jacob Hoffman-Andrews
2022-11-26 01:28:36 -08:00
committed by GitHub
parent 28d667ade9
commit a2836c49a7
4 changed files with 8 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ impl Unit {
if (!username.is_empty() || !password.is_empty())
&& get_header(&headers, "authorization").is_none()
{
let encoded = base64::encode(&format!("{}:{}", username, password));
let encoded = base64::encode(format!("{}:{}", username, password));
extra.push(Header::new("Authorization", &format!("Basic {}", encoded)));
}