]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove a handful of redundant imports
authorMatt Corallo <git@bluematt.me>
Thu, 21 Mar 2024 15:48:54 +0000 (15:48 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 5 Apr 2024 09:05:56 +0000 (09:05 +0000)
... that newer rustc now warns about.

lightning-block-sync/src/init.rs
lightning-invoice/tests/ser_de.rs
lightning-net-tokio/src/lib.rs
lightning-persister/src/fs_store.rs

index 8cb0ff70a2e67ee1dee3330ffa77532b8bd68b83..ba93d12f5bcd7ff49d703e530c448b27707bd1a5 100644 (file)
@@ -252,8 +252,6 @@ mod tests {
        use crate::test_utils::{Blockchain, MockChainListener};
        use super::*;
 
-       use bitcoin::network::constants::Network;
-
        #[tokio::test]
        async fn sync_from_same_chain() {
                let chain = Blockchain::default().with_height(4);
index 92bc87bef63e86e98c7678b88dc2ce251352c874..e5e311fe669277b955ccf23e372478fd8386560b 100644 (file)
@@ -8,9 +8,6 @@ use bitcoin::address::WitnessVersion;
 use bitcoin::{PubkeyHash, ScriptHash};
 use bitcoin::hashes::hex::FromHex;
 use bitcoin::hashes::{sha256, Hash};
-use lightning::ln::PaymentSecret;
-use lightning::routing::gossip::RoutingFees;
-use lightning::routing::router::{RouteHint, RouteHintHop};
 use lightning_invoice::*;
 use secp256k1::PublicKey;
 use secp256k1::ecdsa::{RecoverableSignature, RecoveryId};
index be41a2401244f0bff743e44b9e7ec26482d95227..41691d9a0798b87133b90d4d7cd7b713349bafed 100644 (file)
@@ -556,7 +556,6 @@ mod tests {
        use lightning::ln::features::*;
        use lightning::ln::msgs::*;
        use lightning::ln::peer_handler::{MessageHandler, PeerManager};
-       use lightning::ln::features::NodeFeatures;
        use lightning::routing::gossip::NodeId;
        use lightning::events::*;
        use lightning::util::test_utils::TestNodeSigner;
index 350b1cdd195636f937cd32a700da9464508fee8e..364a3ee706f5288fd61dc52df53d6c135799f1cd 100644 (file)
@@ -379,7 +379,6 @@ mod tests {
        use lightning::ln::functional_test_utils::*;
        use lightning::util::test_utils;
        use lightning::util::persist::read_channel_monitors;
-       use std::fs;
        use std::str::FromStr;
 
        impl Drop for FilesystemStore {