From a5707fd713076ef1a64b2f7c48e672d64c01e987 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Tue, 28 Jul 2020 23:48:46 +0600 Subject: [PATCH] Move UpState to utils --- src/lib.rs | 1 - src/prelude.rs | 2 +- src/utils/mod.rs | 4 ++++ src/{ => utils}/up_state.rs | 0 4 files changed, 5 insertions(+), 2 deletions(-) rename src/{ => utils}/up_state.rs (100%) diff --git a/src/lib.rs b/src/lib.rs index 59775c94..f4e60912 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,6 @@ mod logging; pub mod prelude; pub mod requests; pub mod types; -mod up_state; pub mod utils; extern crate teloxide_macros; diff --git a/src/prelude.rs b/src/prelude.rs index 4c5730ed..3b2032d9 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -15,7 +15,7 @@ pub use crate::{ }; #[cfg(feature = "frunk")] -pub use crate::up_state::UpState; +pub use crate::utils::UpState; pub use tokio::sync::mpsc::UnboundedReceiver; diff --git a/src/utils/mod.rs b/src/utils/mod.rs index a35af470..6882383b 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -4,5 +4,9 @@ mod client_from_env; pub mod command; pub mod html; pub mod markdown; +mod up_state; pub use client_from_env::client_from_env; + +#[cfg(feature = "frunk")] +pub use up_state::UpState; diff --git a/src/up_state.rs b/src/utils/up_state.rs similarity index 100% rename from src/up_state.rs rename to src/utils/up_state.rs