mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
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:
parent
dbd0ab8cf8
commit
0190fec003
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue