diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-12 18:59:41 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 02:59:41 +0200 |
commit | d2c638464d108b945440429cfba0594c20089d76 (patch) | |
tree | e7389d1e94a924f4eed33b1f65dc385a92853e2e /ext/http/http_next.rs | |
parent | 397b22eccf0c388e3e287c523f169a9946fc06ce (diff) |
chore(ext/http): fix github lint issue (#19479)
Diffstat (limited to 'ext/http/http_next.rs')
-rw-r--r-- | ext/http/http_next.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs index f2e25555a..89506b47d 100644 --- a/ext/http/http_next.rs +++ b/ext/http/http_next.rs @@ -16,7 +16,6 @@ use crate::slab::slab_insert; use crate::slab::SlabId; use crate::websocket_upgrade::WebSocketUpgrade; use crate::LocalExecutor; -use bytes::Bytes; use cache_control::CacheControl; use deno_core::error::AnyError; use deno_core::futures::TryFutureExt; @@ -416,8 +415,8 @@ fn op_http_set_response_headers( let v8_name: ByteString = from_v8(scope, name).unwrap(); let v8_value: ByteString = from_v8(scope, value).unwrap(); let header_name = HeaderName::from_bytes(&v8_name).unwrap(); - // SAFETY: These are valid latin-1 strings let header_value = + // SAFETY: These are valid latin-1 strings unsafe { HeaderValue::from_maybe_shared_unchecked(v8_value) }; resp_headers.append(header_name, header_value); } |