]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove useless test framework warnings
authorAntoine Riard <ariard@student.42.fr>
Sat, 26 Oct 2019 00:20:41 +0000 (20:20 -0400)
committerAntoine Riard <ariard@student.42.fr>
Sat, 26 Oct 2019 00:20:41 +0000 (20:20 -0400)
src/ln/functional_tests.rs

index e37b63cc19f53a89dd310dba3687d96912fb4037..044c1673011dd66d81112fe7c673a9aaf19287a0 100644 (file)
@@ -1246,7 +1246,6 @@ fn duplicate_htlc_test() {
 }
 
 fn do_channel_reserve_test(test_recv: bool) {
-       use std::sync::atomic::Ordering;
        use ln::msgs::HandleError;
 
        let mut nodes = create_network(3, &[None, None, None]);
@@ -4518,7 +4517,6 @@ fn run_onion_failure_test_with_fail_intercept<F1,F2,F3>(_name: &str, test_case:
                                F2: for <'a> FnMut(&'a mut msgs::UpdateFailHTLC),
                                F3: FnMut(),
 {
-       use ln::msgs::HTLCFailChannelUpdate;
 
        // reset block height
        let header = BlockHeader { version: 0x20000000, prev_blockhash: Default::default(), merkle_root: Default::default(), time: 42, bits: 42, nonce: 42 };