From aba77480ac8e1e63857b99e3dee50f7700abeae2 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Tue, 9 Jan 2024 15:05:29 -0600 Subject: [PATCH] Consolidate conditional imports --- lightning/src/ln/payment_tests.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lightning/src/ln/payment_tests.rs b/lightning/src/ln/payment_tests.rs index 15870dc57..0db815a70 100644 --- a/lightning/src/ln/payment_tests.rs +++ b/lightning/src/ln/payment_tests.rs @@ -42,10 +42,12 @@ use crate::prelude::*; use crate::ln::functional_test_utils; use crate::ln::functional_test_utils::*; use crate::routing::gossip::NodeId; + #[cfg(feature = "std")] -use std::time::{SystemTime, Instant, Duration}; -#[cfg(feature = "std")] -use crate::util::time::tests::SinceEpoch; +use { + crate::util::time::tests::SinceEpoch, + std::time::{SystemTime, Instant, Duration}, +}; #[test] fn mpp_failure() { -- 2.39.5