We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069a75e commit 80b7d64Copy full SHA for 80b7d64
src/conditional/etag.rs
@@ -64,7 +64,7 @@ impl ETag {
64
65
// If a header is returned we can assume at least one exists.
66
let s = headers.iter().last().unwrap().as_str();
67
- Self::from_str(s).map(|etag| Some(etag))
+ Self::from_str(s).map(Some)
68
}
69
70
/// Sets the `ETag` header.
0 commit comments