Skip to content

Commit e848a22

Browse files
committed
Enforce no missing docs in all crates (+ add docs that were missing)
1 parent 7e68093 commit e848a22

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

background-processor/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
//! Utilities that take care of tasks that (1) need to happen periodically to keep Rust-Lightning
2+
//! running properly, and (2) either can or should be run in the background. See docs for
3+
//! [`BackgroundProcessor`] for more details on the nitty-gritty.
4+
15
#![deny(broken_intra_doc_links)]
6+
#![deny(missing_docs)]
27
#![deny(unsafe_code)]
38

49
#[macro_use] extern crate lightning;

lightning-block-sync/src/init.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Utilities to assist in the initial sync required to initialize or reload Rust-Lightning objects
2+
//! from disk.
3+
14
use crate::{BlockSource, BlockSourceResult, Cache, ChainNotifier};
25
use crate::poll::{ChainPoller, Validate, ValidatedBlockHeader};
36

lightning-block-sync/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//! [`BlockSource`]: trait.BlockSource.html
1818
1919
#![deny(broken_intra_doc_links)]
20+
#![deny(missing_docs)]
2021
#![deny(unsafe_code)]
2122

2223
#[cfg(any(feature = "rest-client", feature = "rpc-client"))]

lightning-block-sync/src/poll.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Adapters which make one or more [`BlockSource`]s simpler to poll for new chain tip transitions.
2+
13
use crate::{AsyncBlockSourceResult, BlockHeaderData, BlockSource, BlockSourceError, BlockSourceResult};
24

35
use bitcoin::blockdata::block::Block;

lightning-persister/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
//! Utilities which handle persisting Rust-Lightning data to disk via standard filesystem APIs.
2+
13
#![deny(broken_intra_doc_links)]
4+
#![deny(missing_docs)]
25

36
mod util;
47

@@ -74,6 +77,7 @@ impl FilesystemPersister {
7477
}
7578
}
7679

80+
/// Get the directory which was provided when this persister was initialized.
7781
pub fn get_data_dir(&self) -> String {
7882
self.path_to_channel_data.clone()
7983
}

0 commit comments

Comments
 (0)