diff --git a/chain-ops/src/node/mod.rs b/chain-ops/src/node/mod.rs index 3b0f9aa..5373603 100644 --- a/chain-ops/src/node/mod.rs +++ b/chain-ops/src/node/mod.rs @@ -40,6 +40,7 @@ pub trait Reconnect { } #[derive(Clone)] +#[must_use] pub struct Client where Self: Reconnect, diff --git a/chain-ops/src/signer.rs b/chain-ops/src/signer.rs index 18a285f..d082fe4 100644 --- a/chain-ops/src/signer.rs +++ b/chain-ops/src/signer.rs @@ -175,6 +175,7 @@ impl Signer { } } +#[must_use] pub struct GasAndFeeConfiguration { pub gas_adjustment_numerator: u32, pub gas_adjustment_denominator: NonZeroU32, diff --git a/chain-ops/src/supervisor/configuration.rs b/chain-ops/src/supervisor/configuration.rs index 23cc105..d15b5ca 100644 --- a/chain-ops/src/supervisor/configuration.rs +++ b/chain-ops/src/supervisor/configuration.rs @@ -103,22 +103,27 @@ impl Service { &self.admin_contract } + #[must_use] pub fn idle_duration(&self) -> Duration { self.idle_duration } + #[must_use] pub fn timeout_duration(&self) -> Duration { self.timeout_duration } + #[must_use] pub fn balance_reporter_idle_duration(&self) -> Duration { self.balance_reporter_idle_duration } + #[must_use] pub fn broadcast_delay_duration(&self) -> Duration { self.broadcast_delay_duration } + #[must_use] pub fn broadcast_retry_delay_duration(&self) -> Duration { self.broadcast_retry_delay_duration }