summaryrefslogtreecommitdiffstats
path: root/futures/src/subscription.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:48:09 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:48:09 +0100
commit0f9934b1a70cdadb9131b68b6dfb76083f014636 (patch)
tree13bc41ff41acd313dc23c8bb0b50680319d15565 /futures/src/subscription.rs
parentc12beecd387ad57eef434b64598473f613e32f57 (diff)
downloadiced-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.rs2
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);
///