From e4e46d8df1f668e88cd3d7027e476b856bc8d772 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Wed, 1 Jan 2020 03:26:30 +0600 Subject: [PATCH] Fix teloxide::dispatching layout --- src/dispatching/{filter_dp.rs => dispatchers/filter.rs} | 0 src/dispatching/dispatchers/mod.rs | 1 + src/dispatching/mod.rs | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) rename src/dispatching/{filter_dp.rs => dispatchers/filter.rs} (100%) create mode 100644 src/dispatching/dispatchers/mod.rs diff --git a/src/dispatching/filter_dp.rs b/src/dispatching/dispatchers/filter.rs similarity index 100% rename from src/dispatching/filter_dp.rs rename to src/dispatching/dispatchers/filter.rs diff --git a/src/dispatching/dispatchers/mod.rs b/src/dispatching/dispatchers/mod.rs new file mode 100644 index 00000000..34d102d7 --- /dev/null +++ b/src/dispatching/dispatchers/mod.rs @@ -0,0 +1 @@ +pub mod filter; diff --git a/src/dispatching/mod.rs b/src/dispatching/mod.rs index f738757d..8cdd83ae 100644 --- a/src/dispatching/mod.rs +++ b/src/dispatching/mod.rs @@ -1,13 +1,13 @@ //! Update dispatching. +mod dispatchers; pub mod error_handlers; -mod filter_dp; pub mod filters; mod handler; pub mod updaters; +pub use dispatchers::filter::FilterDispatcher; pub use error_handlers::ErrorHandler; -pub use filter_dp::FilterDispatcher; pub use filters::Filter; pub use handler::Handler; pub use updaters::Updater;