Skip to content

Commit 616ced3

Browse files
committed
fix clippy
1 parent 234a227 commit 616ced3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
//! use futures_lite::stream;
2626
//!
2727
//! let v: Vec<_> = vec!["chashu", "nori"]
28-
//! .into_co_stream()
29-
//! .map(|msg| async move { format!("hello {msg}") })
30-
//! .collect()
31-
//! .await;
28+
//! .into_co_stream()
29+
//! .map(|msg| async move { format!("hello {msg}") })
30+
//! .collect()
31+
//! .await;
3232
//!
33-
//! assert_eq!(v, &["hello chashu", "hello nori"]);
33+
//! assert_eq!(v, &["hello chashu", "hello nori"]);
3434
//! ```
3535
//!
3636
//! **Access stack data outside the futures' scope**
@@ -44,13 +44,13 @@
4444
//! let mut num = 0;
4545
//!
4646
//! let a = async {
47-
//! println!("hello from the first future");
48-
//! dbg!(&container);
47+
//! println!("hello from the first future");
48+
//! dbg!(&container);
4949
//! };
5050
//!
5151
//! let b = async {
52-
//! println!("hello from the second future");
53-
//! num += container[0] + container[2];
52+
//! println!("hello from the second future");
53+
//! num += container[0] + container[2];
5454
//! };
5555
//!
5656
//! println!("hello from the main future");

0 commit comments

Comments
 (0)