From 3186585ab994956df62e563005e1d15b48eafd77 Mon Sep 17 00:00:00 2001 From: v0-e Date: Tue, 26 Nov 2024 09:36:50 +0000 Subject: [PATCH] Removes unused code (under no-default-features) --- v4-client-rs/client/examples/faucet_endpoint.rs | 2 ++ v4-client-rs/client/examples/noble_transfer.rs | 1 + v4-client-rs/client/tests/env.rs | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/v4-client-rs/client/examples/faucet_endpoint.rs b/v4-client-rs/client/examples/faucet_endpoint.rs index 60349d1d..ac9f4ff2 100644 --- a/v4-client-rs/client/examples/faucet_endpoint.rs +++ b/v4-client-rs/client/examples/faucet_endpoint.rs @@ -1,4 +1,6 @@ mod support; + +#[cfg(feature = "faucet")] use anyhow::Result; #[cfg(feature = "faucet")] diff --git a/v4-client-rs/client/examples/noble_transfer.rs b/v4-client-rs/client/examples/noble_transfer.rs index caaa3ef4..b379f3ed 100644 --- a/v4-client-rs/client/examples/noble_transfer.rs +++ b/v4-client-rs/client/examples/noble_transfer.rs @@ -1,3 +1,4 @@ +#[cfg(feature = "noble")] use anyhow::Result; #[cfg(feature = "noble")] diff --git a/v4-client-rs/client/tests/env.rs b/v4-client-rs/client/tests/env.rs index 78328038..f6edc20d 100644 --- a/v4-client-rs/client/tests/env.rs +++ b/v4-client-rs/client/tests/env.rs @@ -1,4 +1,6 @@ -use anyhow::{anyhow as err, Error, Result}; +#[cfg(any(feature = "faucet", feature = "noble"))] +use anyhow::anyhow as err; +use anyhow::{Error, Result}; use chrono::{TimeDelta, Utc}; #[cfg(feature = "faucet")] use dydx::faucet::FaucetClient;