m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-16 17:13:46 -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()
.fold(String::new(), |acc, (key, value)| {
if *key == "realm" {
return acc.to_owned() + value.as_escaped() + "?";
acc.to_owned() + value.as_escaped() + "?"
} else {
format!("{}&{}={}", acc, key, value.as_escaped())
}