m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 09:33:38 -05:00

Fix clippy lint (this code has been there since... forever, why hasn't this been detected)

This commit is contained in:
Sergio
2025-02-21 16:02:03 +02:00
parent 4b03a48d88
commit f020ac0906

View File

@@ -16,7 +16,7 @@ pub fn parse_www_authenticate(www_auth: &str) -> String {
.iter() .iter()
.fold(String::new(), |acc, (key, value)| { .fold(String::new(), |acc, (key, value)| {
if *key == "realm" { if *key == "realm" {
return acc.to_owned() + value.as_escaped() + "?"; acc.to_owned() + value.as_escaped() + "?"
} else { } else {
format!("{}&{}={}", acc, key, value.as_escaped()) format!("{}&{}={}", acc, key, value.as_escaped())
} }