From c03cc8b5c57251ffc8eac4807846a5b3f375e811 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 17 Feb 2024 05:37:43 +0900 Subject: [PATCH] chore(header): allow clippy::should_implement_trait rule for HeaderValue::from_str --- src/header/value.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/header/value.rs b/src/header/value.rs index 479f13b4..b7978cac 100644 --- a/src/header/value.rs +++ b/src/header/value.rs @@ -129,6 +129,7 @@ impl HeaderValue { /// assert!(val.is_err()); /// ``` #[inline] + #[allow(clippy::should_implement_trait)] pub fn from_str(src: &str) -> Result { HeaderValue::try_from_generic(src, |s| Bytes::copy_from_slice(s.as_bytes())) }