From 260418af4faa6d1157b7ea3f70cf9bf2783d2834 Mon Sep 17 00:00:00 2001 From: One <43485962+c-git@users.noreply.github.com> Date: Mon, 19 Aug 2024 22:29:33 -0400 Subject: [PATCH] chore: stop warning when not compiling w/cookies --- src/wasm/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wasm/client.rs b/src/wasm/client.rs index 0533b3162..f5ce3144c 100644 --- a/src/wasm/client.rs +++ b/src/wasm/client.rs @@ -201,6 +201,7 @@ impl fmt::Debug for ClientBuilder { // > `init.method(m)` to `init.set_method(m)` // For now, ignore their deprecation. #[allow(deprecated)] +#[cfg_attr(not(feature = "cookies"), allow(unused_variables))] // client only used if cookies are enabled async fn fetch(req: Request, client: Client) -> crate::Result { // Build the js Request let mut init = web_sys::RequestInit::new();