From 9b8e21231c9aee74170d6bb3542222effea6b8e1 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Sat, 15 Oct 2022 23:54:16 +0600 Subject: [PATCH] Make `CommandRepl`'s methods `#[must_use]` Former-commit-id: 0fb9399201cfa24d5890311ad9cc3cdf7cb1d0ad --- src/dispatching/repls/commands_repl.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dispatching/repls/commands_repl.rs b/src/dispatching/repls/commands_repl.rs index 0c237044..5cbecd5b 100644 --- a/src/dispatching/repls/commands_repl.rs +++ b/src/dispatching/repls/commands_repl.rs @@ -69,6 +69,7 @@ pub trait CommandRepl { /// A REPL for commands. /// /// See [`CommandRepl`] for more details. + #[must_use] fn repl<'a, R, H, Args>(bot: R, handler: H) -> BoxFuture<'a, ()> where R: Requester + Clone + Send + Sync + 'static, @@ -81,6 +82,7 @@ pub trait CommandRepl { /// A REPL for commands with a custom [`UpdateListener`]. /// /// See [`CommandRepl`] for more details. + #[must_use] fn repl_with_listener<'a, R, H, L, Args>(bot: R, handler: H, listener: L) -> BoxFuture<'a, ()> where H: Injectable, Args> + Send + Sync + 'static,