From 0190fec003d85a1ecbe615aadb4010bbb92b45a1 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 9 Sep 2022 13:19:43 +0200 Subject: [PATCH] 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. --- lightning-rapid-gossip-sync/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 2.39.5