From fcdcb2676840f9f6aa7badc6d40de92602478c73 Mon Sep 17 00:00:00 2001 From: Tim Ling <791016+kettlebell@users.noreply.github.com> Date: Thu, 7 Apr 2022 13:19:45 +1000 Subject: [PATCH] Deal with some clippy warnings in `reqwest-wrap` Related to https://github.com/rustwasm/wasm-bindgen/issues/2774 --- reqwest-wrap/src/wasm/body.rs | 1 + reqwest-wrap/src/wasm/client.rs | 1 + reqwest-wrap/tests/wasm_simple.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/reqwest-wrap/src/wasm/body.rs b/reqwest-wrap/src/wasm/body.rs index b485f8b68..9e925e9c5 100644 --- a/reqwest-wrap/src/wasm/body.rs +++ b/reqwest-wrap/src/wasm/body.rs @@ -1,3 +1,4 @@ +#![allow(clippy::unused_unit)] #[cfg(feature = "multipart")] use super::multipart::Form; /// dox diff --git a/reqwest-wrap/src/wasm/client.rs b/reqwest-wrap/src/wasm/client.rs index aafead8e1..ef1fa65d0 100644 --- a/reqwest-wrap/src/wasm/client.rs +++ b/reqwest-wrap/src/wasm/client.rs @@ -1,3 +1,4 @@ +#![allow(clippy::unused_unit)] use http::{HeaderMap, Method}; use js_sys::{Promise, JSON}; use std::rc::Rc; diff --git a/reqwest-wrap/tests/wasm_simple.rs b/reqwest-wrap/tests/wasm_simple.rs index 7e7d35be2..1697f94f0 100644 --- a/reqwest-wrap/tests/wasm_simple.rs +++ b/reqwest-wrap/tests/wasm_simple.rs @@ -1,4 +1,5 @@ #![cfg(target_arch = "wasm32")] +#![allow(clippy::unused_unit)] use reqwest_wrap as reqwest; use std::time::Duration;