mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-17 01:23:39 -05:00
Fix clippy lint (this code has been there since... forever, why hasn't this been detected)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user