diff --git a/crates/teloxide/src/dispatching.rs b/crates/teloxide/src/dispatching.rs index bb1e9d94..a4d9b6ce 100644 --- a/crates/teloxide/src/dispatching.rs +++ b/crates/teloxide/src/dispatching.rs @@ -229,7 +229,7 @@ pub mod update_listeners { /// /// [`teloxide::repls`]: crate::repls #[deprecated = "This module was moved. Use `teloxide::repls` instead."] -#[cfg(all(feature = "ctrlc_handler"))] +#[cfg(feature = "ctrlc_handler")] pub mod repls { pub use crate::repls::*; } diff --git a/crates/teloxide/src/lib.rs b/crates/teloxide/src/lib.rs index ffcd8f65..1a1c6797 100644 --- a/crates/teloxide/src/lib.rs +++ b/crates/teloxide/src/lib.rs @@ -69,7 +69,7 @@ pub use repls::{commands_repl, commands_repl_with_listener}; pub mod dispatching; pub mod error_handlers; pub mod prelude; -#[cfg(all(feature = "ctrlc_handler"))] +#[cfg(feature = "ctrlc_handler")] pub mod repls; pub mod stop; pub mod update_listeners;