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:
@@ -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())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user