From: Jeffrey Czyz Date: Tue, 9 Jan 2024 20:59:30 +0000 (-0600) Subject: Remove redundant negations from feature check X-Git-Tag: v0.0.123-beta~93^2~12 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a1c30041360905e5edcb343447cf1d5872188914;p=rust-lightning Remove redundant negations from feature check --- diff --git a/lightning/src/ln/outbound_payment.rs b/lightning/src/ln/outbound_payment.rs index 66c9ee62..b82cc436 100644 --- a/lightning/src/ln/outbound_payment.rs +++ b/lightning/src/ln/outbound_payment.rs @@ -345,10 +345,10 @@ pub(crate) struct PaymentAttemptsUsingTime { } -#[cfg(not(any(not(feature = "std"), test)))] -type ConfiguredTime = crate::util::time::MonotonicTime; #[cfg(not(feature = "std"))] type ConfiguredTime = crate::util::time::Eternity; +#[cfg(all(feature = "std", not(test)))] +type ConfiguredTime = crate::util::time::MonotonicTime; #[cfg(all(feature = "std", test))] type ConfiguredTime = SinceEpoch;