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