From 069163264fc88555a8f6f6542c383bb313082856 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Mon, 21 Aug 2023 22:56:39 +0200 Subject: [PATCH] chore(command): `future` does not need to restrict the message type --- src/command/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/mod.rs b/src/command/mod.rs index 109f7263..032e5323 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -22,7 +22,7 @@ pub fn batch(commands: impl IntoIterator>) -> Command { } /// Yields a command which will run the future on the runtime executor. -pub fn future(future: impl Future + Send + 'static) -> Command { +pub fn future(future: impl Future + Send + 'static) -> Command { Command::single(Action::Future(Box::pin(future))) }