Skip to content

Commit 0190fec

Browse files
committed
Export error type instead of entire modules
Previously the `error` and `processing` modules have been `pub`, leading to them being included in the docs, altough (almost) empty. Instead, we now `pub use` the `GraphSyncError` directly, cleaning up the docs.
1 parent dbd0ab8 commit 0190fec

File tree

1 file changed

+3
-3
lines changed
  • lightning-rapid-gossip-sync/src

1 file changed

+3
-3
lines changed

lightning-rapid-gossip-sync/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ use std::sync::atomic::{AtomicBool, Ordering};
7575
use lightning::routing::gossip::NetworkGraph;
7676
use lightning::util::logger::Logger;
7777

78-
use crate::error::GraphSyncError;
78+
pub use crate::error::GraphSyncError;
7979

8080
/// Error types that these functions can return
81-
pub mod error;
81+
mod error;
8282

8383
/// Core functionality of this crate
84-
pub mod processing;
84+
mod processing;
8585

8686
/// Rapid Gossip Sync struct
8787
/// See [crate-level documentation] for usage.

0 commit comments

Comments
 (0)