Skip to content

Commit fe25f9e

Browse files
committed
fix: clippy lint from hyperium_http feature
only appears on 2.x for some reason
1 parent 998ad22 commit fe25f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hyperium_http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl TryFrom<HeaderName> for http::header::HeaderName {
6868

6969
fn try_from(name: HeaderName) -> Result<Self, Self::Error> {
7070
let name = name.as_str().as_bytes();
71-
http::header::HeaderName::from_bytes(name).map_err(|e| Error::new_adhoc(e))
71+
http::header::HeaderName::from_bytes(name).map_err(Error::new_adhoc)
7272
}
7373
}
7474

@@ -86,7 +86,7 @@ impl TryFrom<HeaderValue> for http::header::HeaderValue {
8686

8787
fn try_from(value: HeaderValue) -> Result<Self, Self::Error> {
8888
let value = value.as_str().as_bytes();
89-
http::header::HeaderValue::from_bytes(value).map_err(|e| Error::new_adhoc(e))
89+
http::header::HeaderValue::from_bytes(value).map_err(Error::new_adhoc)
9090
}
9191
}
9292

0 commit comments

Comments
 (0)