From 8ce4ddc407219fe724e1df4400ff9b14321e2fd1 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 27 Nov 2023 16:12:55 -0700 Subject: 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. --- Cargo.lock | 2 +- Cargo.toml | 2 +- ext/http/Cargo.toml | 2 +- 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, // Keep server alive for duration of this future. -- cgit v1.2.3