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. --- ext/http/Cargo.toml | 2 +- ext/http/service.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') 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