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.
This commit is contained in:
Elias Rohrer 2022-09-09 13:19:43 +02:00
parent dbd0ab8cf8
commit 0190fec003
No known key found for this signature in database
GPG key ID: 36153082BDF676FD

View file

@ -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.