From 616ced3d91e8ee141c595330d0a035d0543e7689 Mon Sep 17 00:00:00 2001 From: Yosh Date: Sun, 7 Apr 2024 00:08:04 +0200 Subject: [PATCH] fix clippy --- src/lib.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5407181..48450da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,12 +25,12 @@ //! use futures_lite::stream; //! //! let v: Vec<_> = vec!["chashu", "nori"] -//! .into_co_stream() -//! .map(|msg| async move { format!("hello {msg}") }) -//! .collect() -//! .await; +//! .into_co_stream() +//! .map(|msg| async move { format!("hello {msg}") }) +//! .collect() +//! .await; //! -//! assert_eq!(v, &["hello chashu", "hello nori"]); +//! assert_eq!(v, &["hello chashu", "hello nori"]); //! ``` //! //! **Access stack data outside the futures' scope** @@ -44,13 +44,13 @@ //! let mut num = 0; //! //! let a = async { -//! println!("hello from the first future"); -//! dbg!(&container); +//! println!("hello from the first future"); +//! dbg!(&container); //! }; //! //! let b = async { -//! println!("hello from the second future"); -//! num += container[0] + container[2]; +//! println!("hello from the second future"); +//! num += container[0] + container[2]; //! }; //! //! println!("hello from the main future");