]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #384 from ariard/2019-10-clean-warnings
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Sat, 26 Oct 2019 20:59:55 +0000 (20:59 +0000)
committerGitHub <noreply@github.com>
Sat, 26 Oct 2019 20:59:55 +0000 (20:59 +0000)
Remove useless test framework warnings

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 };