From: Elias Rohrer Date: Fri, 9 Sep 2022 11:19:43 +0000 (+0200) Subject: Export error type instead of entire modules X-Git-Tag: v0.0.112~36^2~2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0190fec003d85a1ecbe615aadb4010bbb92b45a1;p=rust-lightning 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. --- diff --git a/lightning-rapid-gossip-sync/src/lib.rs b/lightning-rapid-gossip-sync/src/lib.rs index 70758e1fe..9005665b3 100644 --- a/lightning-rapid-gossip-sync/src/lib.rs +++ b/lightning-rapid-gossip-sync/src/lib.rs @@ -75,13 +75,13 @@ use std::sync::atomic::{AtomicBool, Ordering}; use lightning::routing::gossip::NetworkGraph; use lightning::util::logger::Logger; -use crate::error::GraphSyncError; +pub use crate::error::GraphSyncError; /// Error types that these functions can return -pub mod error; +mod error; /// Core functionality of this crate -pub mod processing; +mod processing; /// Rapid Gossip Sync struct /// See [crate-level documentation] for usage.