Skip to content

Commit c03cc8b

Browse files
tottotoseanmonstar
authored andcommitted
chore(header): allow clippy::should_implement_trait rule for HeaderValue::from_str
1 parent 4785cdd commit c03cc8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/header/value.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ impl HeaderValue {
129129
/// assert!(val.is_err());
130130
/// ```
131131
#[inline]
132+
#[allow(clippy::should_implement_trait)]
132133
pub fn from_str(src: &str) -> Result<HeaderValue, InvalidHeaderValue> {
133134
HeaderValue::try_from_generic(src, |s| Bytes::copy_from_slice(s.as_bytes()))
134135
}

0 commit comments

Comments
 (0)