Skip to content

Commit 85a65c0

Browse files
author
Elias Rohrer
committed
Fix compiler warning during building/testing.
1 parent 34cdca9 commit 85a65c0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! running properly, and (2) either can or should be run in the background. See docs for
33
//! [`BackgroundProcessor`] for more details on the nitty-gritty.
44
5-
#![deny(broken_intra_doc_links)]
5+
#![deny(rustdoc::broken_intra_doc_links)]
66
#![deny(missing_docs)]
77
#![deny(unsafe_code)]
88

lightning-block-sync/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! Both features support either blocking I/O using `std::net::TcpStream` or, with feature `tokio`,
1414
//! non-blocking I/O using `tokio::net::TcpStream` from inside a Tokio runtime.
1515
16-
#![deny(broken_intra_doc_links)]
16+
#![deny(rustdoc::broken_intra_doc_links)]
1717
#![deny(missing_docs)]
1818
#![deny(unsafe_code)]
1919

lightning-invoice/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![deny(non_camel_case_types)]
44
#![deny(non_snake_case)]
55
#![deny(unused_mut)]
6-
#![deny(broken_intra_doc_links)]
6+
#![deny(rustdoc::broken_intra_doc_links)]
77

88
#![cfg_attr(feature = "strict", deny(warnings))]
99
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
@@ -117,7 +117,7 @@ pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18;
117117
fn __system_time_size_check() {
118118
// Use 2 * sizeof(u64) as expected size since the expected underlying implementation is storing
119119
// a `Duration` since `SystemTime::UNIX_EPOCH`.
120-
unsafe { core::mem::transmute_copy::<SystemTime, [u8; 16]>(&SystemTime::UNIX_EPOCH); }
120+
unsafe { let _ = core::mem::transmute_copy::<SystemTime, [u8; 16]>(&SystemTime::UNIX_EPOCH); }
121121
}
122122

123123

lightning-net-tokio/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
//! }
6767
//! ```
6868
69-
#![deny(broken_intra_doc_links)]
69+
#![deny(rustdoc::broken_intra_doc_links)]
7070
#![deny(missing_docs)]
7171

7272
use bitcoin::secp256k1::key::PublicKey;

lightning-persister/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Utilities that handle persisting Rust-Lightning data to disk via standard filesystem APIs.
22
3-
#![deny(broken_intra_doc_links)]
3+
#![deny(rustdoc::broken_intra_doc_links)]
44
#![deny(missing_docs)]
55

66
#![cfg_attr(all(test, feature = "unstable"), feature(test))]

lightning/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
#![cfg_attr(not(any(test, feature = "fuzztarget", feature = "_test_utils")), deny(missing_docs))]
2222
#![cfg_attr(not(any(test, feature = "fuzztarget", feature = "_test_utils")), forbid(unsafe_code))]
23-
#![deny(broken_intra_doc_links)]
23+
#![deny(rustdoc::broken_intra_doc_links)]
2424

2525
// In general, rust is absolutely horrid at supporting users doing things like,
2626
// for example, compiling Rust code for real environments. Disable useless lints

0 commit comments

Comments
 (0)