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;