From bc1ac8edf8095c866bcd46527222cad94f9af364 Mon Sep 17 00:00:00 2001 From: Adam Spofford Date: Tue, 3 Oct 2023 18:21:10 -0700 Subject: [PATCH] that warning doesn't work on wasm --- ic-agent/src/lib.rs | 4 ++-- ic-utils/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ic-agent/src/lib.rs b/ic-agent/src/lib.rs index 5c3e9f23..e0f3a9a0 100644 --- a/ic-agent/src/lib.rs +++ b/ic-agent/src/lib.rs @@ -106,9 +106,9 @@ #![warn( missing_docs, rustdoc::broken_intra_doc_links, - rustdoc::private_intra_doc_links, - clippy::future_not_send + rustdoc::private_intra_doc_links )] +#![cfg_attr(not(target_family = "wasm"), warn(clippy::future_not_send))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #[cfg(all(feature = "hyper", target_family = "wasm"))] diff --git a/ic-utils/src/lib.rs b/ic-utils/src/lib.rs index e98fec12..05aca874 100644 --- a/ic-utils/src/lib.rs +++ b/ic-utils/src/lib.rs @@ -5,9 +5,9 @@ missing_docs, missing_debug_implementations, rustdoc::broken_intra_doc_links, - rustdoc::private_intra_doc_links, - clippy::future_not_send + rustdoc::private_intra_doc_links )] +#![cfg_attr(not(target_family = "wasm"), warn(clippy::future_not_send))] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] /// Utilities to encapsulate calls to a canister.