From 7fe39918b4688576ea879aad256993aea74f275a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 27 Aug 2026 14:48:42 -0700 Subject: [PATCH] Scope futures returned by wasip3 http implementations Flag to rustc that the input `hooks` argument isn't captured in the output `impl Future` argument. Closes #14218 --- crates/wasi-http/src/p3/request.rs | 2 +- crates/wasi-http/src/p3/response.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasi-http/src/p3/request.rs b/crates/wasi-http/src/p3/request.rs index 440d81b28ea8..11b5dde76dd0 100644 --- a/crates/wasi-http/src/p3/request.rs +++ b/crates/wasi-http/src/p3/request.rs @@ -89,7 +89,7 @@ impl Request { req: http::Request, ) -> ( Self, - impl Future> + Send + 'static, + impl Future> + Send + 'static + use, ) where T: http_body::Body + Send + 'static, diff --git a/crates/wasi-http/src/p3/response.rs b/crates/wasi-http/src/p3/response.rs index f4ad8dc4467e..7b41974f0cac 100644 --- a/crates/wasi-http/src/p3/response.rs +++ b/crates/wasi-http/src/p3/response.rs @@ -94,7 +94,7 @@ impl Response { res: http::Response, ) -> ( Self, - impl Future> + Send + 'static, + impl Future> + Send + 'static + use, ) where T: http_body::Body + Send + 'static,