diff --git a/src/dispatching/dispatcher.rs b/src/dispatching/dispatcher.rs index c44ac97e..874e9892 100644 --- a/src/dispatching/dispatcher.rs +++ b/src/dispatching/dispatcher.rs @@ -144,6 +144,9 @@ where ctrlc_handler, } = self; + // If the `ctrlc_handler` feature is not enabled, don't emit a warning. + let _ = ctrlc_handler; + let dp = Dispatcher { bot, dependencies,