diff --git a/src/dispatching/mod.rs b/src/dispatching/mod.rs index 4c72ffe1..e28f4250 100644 --- a/src/dispatching/mod.rs +++ b/src/dispatching/mod.rs @@ -1,11 +1,9 @@ //! Update dispatching. -mod dispatcher; pub mod filters; mod handler; -pub mod storage; +pub mod private; pub mod update_listeners; -pub use dispatcher::*; pub use filters::Filter; pub use handler::*; diff --git a/src/dispatching/dispatcher.rs b/src/dispatching/private/dispatcher.rs similarity index 100% rename from src/dispatching/dispatcher.rs rename to src/dispatching/private/dispatcher.rs diff --git a/src/dispatching/private/mod.rs b/src/dispatching/private/mod.rs new file mode 100644 index 00000000..8e213684 --- /dev/null +++ b/src/dispatching/private/mod.rs @@ -0,0 +1,5 @@ +mod dispatcher; +mod storage; + +pub use dispatcher::*; +pub use storage::*; diff --git a/src/dispatching/storage/in_mem_storage.rs b/src/dispatching/private/storage/in_mem_storage.rs similarity index 92% rename from src/dispatching/storage/in_mem_storage.rs rename to src/dispatching/private/storage/in_mem_storage.rs index b2af31ad..539a227b 100644 --- a/src/dispatching/storage/in_mem_storage.rs +++ b/src/dispatching/private/storage/in_mem_storage.rs @@ -1,6 +1,6 @@ use async_trait::async_trait; -use crate::dispatching::storage::Storage; +use super::Storage; use std::collections::HashMap; #[derive(Clone, Debug, Eq, PartialEq, Default)] diff --git a/src/dispatching/storage/mod.rs b/src/dispatching/private/storage/mod.rs similarity index 100% rename from src/dispatching/storage/mod.rs rename to src/dispatching/private/storage/mod.rs