Remove redundant negations from feature check
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 9 Jan 2024 20:59:30 +0000 (14:59 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Jan 2024 17:12:35 +0000 (11:12 -0600)
lightning/src/ln/outbound_payment.rs

index 66c9ee62e5e8a9044a536da7dedc784a4a0154ae..b82cc436a114e224c266709c7fb6adfc06013eec 100644 (file)
@@ -345,10 +345,10 @@ pub(crate) struct PaymentAttemptsUsingTime<T: Time> {
 
 }
 
-#[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;