diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-11-27 16:12:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 23:12:55 +0000 |
commit | 8ce4ddc407219fe724e1df4400ff9b14321e2fd1 (patch) | |
tree | f0cd9936926f2c107dea745edce78e5b32e39481 | |
parent | 3e83d686a805aa11cb05f665b0d9ed8f95a784cd (diff) |
chore(ext/http): fix E0446 on some compiler versions (#21362)
Rust 1.74 may have made this code temporarily valid in [#113126 Replace
old private-in-public diagnostic with type privacy
lints](https://github.com/rust-lang/rust/pull/113126), so we didn't
catch it at build time.
It fails in 1.73 and +nightly, however.
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | ext/http/Cargo.toml | 2 | ||||
-rw-r--r-- | ext/http/service.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock index 0396cdf14..fcfefe9cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1252,7 +1252,7 @@ dependencies = [ [[package]] name = "deno_http" -version = "0.121.0" +version = "0.122.0" dependencies = [ "async-compression", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index b1c85efdc..1c6842046 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ deno_crypto = { version = "0.139.0", path = "./ext/crypto" } deno_fetch = { version = "0.149.0", path = "./ext/fetch" } deno_ffi = { version = "0.112.0", path = "./ext/ffi" } deno_fs = { version = "0.35.0", path = "./ext/fs" } -deno_http = { version = "0.121.0", path = "./ext/http" } +deno_http = { version = "0.122.0", path = "./ext/http" } deno_io = { version = "0.35.0", path = "./ext/io" } deno_net = { version = "0.117.0", path = "./ext/net" } deno_node = { version = "0.62.0", path = "./ext/node" } diff --git a/ext/http/Cargo.toml b/ext/http/Cargo.toml index 5eb5c6fe4..4ff3acf63 100644 --- a/ext/http/Cargo.toml +++ b/ext/http/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "deno_http" -version = "0.121.0" +version = "0.122.0" authors.workspace = true edition.workspace = true license.workspace = true diff --git a/ext/http/service.rs b/ext/http/service.rs index c232962be..4d909ec61 100644 --- a/ext/http/service.rs +++ b/ext/http/service.rs @@ -176,7 +176,7 @@ impl Drop for HttpRequestBodyAutocloser { } } -pub async fn handle_request( +pub(crate) async fn handle_request( request: Request, request_info: HttpConnectionProperties, server_state: SignallingRc<HttpServerState>, // Keep server alive for duration of this future. |