File tree 6 files changed +10
-1
lines changed
6 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ script:
22
22
- if [ "$BUILD_NET_TOKIO" == "1" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose; fi
23
23
- if [ "$BUILD_NET_TOKIO" != "1" ]; then RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning; fi
24
24
- rm -f target/debug/lightning-* # Make sure we drop old test binaries
25
+ # Run clippy on Rust 1.39.0
26
+ - if [ "$(rustup show | grep default | grep 1.39.0)" != "" ]; then
27
+ rustup component add clippy &&
28
+ cargo clippy; fi
25
29
# Test the appropriate workspace(s)
26
30
- if [ "$BUILD_NET_TOKIO" == "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose; fi
27
31
- if [ "$BUILD_NET_TOKIO" != "1" ]; then RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning; fi
Original file line number Diff line number Diff line change @@ -36,4 +36,3 @@ pub mod util;
36
36
pub mod chain;
37
37
pub mod ln;
38
38
pub mod routing;
39
-
Original file line number Diff line number Diff line change 6
6
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
7
// You may not use this file except in accordance with one or both of these
8
8
// licenses.
9
+ #![ allow( clippy:: erasing_op) ]
9
10
10
11
use bitcoin:: blockdata:: block:: BlockHeader ;
11
12
use bitcoin:: blockdata:: script:: { Script , Builder } ;
Original file line number Diff line number Diff line change 16
16
//! It does not manage routing logic (see routing::router::get_route for that) nor does it manage constructing
17
17
//! on-chain transactions (it only monitors the chain to watch for any force-closes that might
18
18
//! imply it needs to fail HTLCs/payments/channels it manages).
19
+ //!
20
+ #![ allow( clippy:: never_loop) ]
19
21
20
22
use bitcoin:: blockdata:: block:: BlockHeader ;
21
23
use bitcoin:: blockdata:: constants:: genesis_block;
Original file line number Diff line number Diff line change 9
9
10
10
//! The top-level network map tracking logic lives here.
11
11
12
+ #![ allow( clippy:: if_same_then_else) ]
13
+
12
14
use bitcoin:: secp256k1:: key:: PublicKey ;
13
15
use bitcoin:: secp256k1:: Secp256k1 ;
14
16
use bitcoin:: secp256k1;
Original file line number Diff line number Diff line change 6
6
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7
7
// You may not use this file except in accordance with one or both of these
8
8
// licenses.
9
+ #![ allow( clippy:: erasing_op) ]
9
10
10
11
#[ inline]
11
12
pub fn slice_to_be16 ( v : & [ u8 ] ) -> u16 {
You can’t perform that action at this time.
0 commit comments