diff options
author | 2025-02-21 01:48:09 +0100 | |
---|---|---|
committer | 2025-02-21 01:48:09 +0100 | |
commit | 0f9934b1a70cdadb9131b68b6dfb76083f014636 (patch) | |
tree | 13bc41ff41acd313dc23c8bb0b50680319d15565 /futures/src/subscription.rs | |
parent | c12beecd387ad57eef434b64598473f613e32f57 (diff) | |
download | iced-0f9934b1a70cdadb9131b68b6dfb76083f014636.tar.gz iced-0f9934b1a70cdadb9131b68b6dfb76083f014636.tar.bz2 iced-0f9934b1a70cdadb9131b68b6dfb76083f014636.zip |
Leverage new `AsyncFn` traits in `stream` module
Diffstat (limited to '')
-rw-r--r-- | futures/src/subscription.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futures/src/subscription.rs b/futures/src/subscription.rs index 3577d19f..f799d5f8 100644 --- a/futures/src/subscription.rs +++ b/futures/src/subscription.rs @@ -161,7 +161,7 @@ impl<T> Subscription<T> { /// } /// /// fn some_worker() -> impl Stream<Item = Event> { - /// stream::channel(100, |mut output| async move { + /// stream::channel(100, async |mut output| { /// // Create channel /// let (sender, mut receiver) = mpsc::channel(100); /// |