]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Consolidate conditional imports
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 9 Jan 2024 21:05:29 +0000 (15:05 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Jan 2024 17:12:35 +0000 (11:12 -0600)
lightning/src/ln/payment_tests.rs

index 15870dc57132001b58af8da323876c5358a3cc0d..0db815a708532f590d5d7821d2f0bc156e03ad8f 100644 (file)
@@ -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() {