From a1c30041360905e5edcb343447cf1d5872188914 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Tue, 9 Jan 2024 14:59:30 -0600 Subject: [PATCH] Remove redundant negations from feature check --- lightning/src/ln/outbound_payment.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/ln/outbound_payment.rs b/lightning/src/ln/outbound_payment.rs index 66c9ee62e..b82cc436a 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; -- 2.39.5