Skip to content

Commit 80b7d64

Browse files
committed
fix clippy
1 parent 069a75e commit 80b7d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conditional/etag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl ETag {
6464

6565
// If a header is returned we can assume at least one exists.
6666
let s = headers.iter().last().unwrap().as_str();
67-
Self::from_str(s).map(|etag| Some(etag))
67+
Self::from_str(s).map(Some)
6868
}
6969

7070
/// Sets the `ETag` header.

0 commit comments

Comments
 (0)