Skip to content

Commit

Permalink
chore: stop warning when not compiling w/cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Nov 13, 2024
1 parent 57453a2 commit 260418a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wasm/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Response> {
// Build the js Request
let mut init = web_sys::RequestInit::new();
Expand Down

0 comments on commit 260418a

Please sign in to comment.