Skip to content

Commit ef8a441

Browse files
committed
fix clippy, nitpicks
1 parent 4cf9125 commit ef8a441

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ futures = "0.3.1"
2222

2323
[features]
2424
wasm-bindgen = [
25-
"gloo-timers",
26-
"send_wrapper"
25+
"gloo-timers",
26+
"send_wrapper"
2727
]

src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
//!
33
//! # Examples
44
//!
5-
//! ```no_run
6-
//! # #[async_std::main]
7-
//! # async fn main() {
5+
//! ```
86
//! use std::time::Duration;
97
//! use futures_timer::Delay;
8+
//! use futures::executor::block_on;
109
//!
11-
//! let now = Delay::new(Duration::from_secs(3)).await;
10+
//! let now = block_on(Delay::new(Duration::from_secs(3)));
1211
//! println!("waited for 3 secs");
13-
//! # }
1412
//! ```
1513
1614
#![deny(missing_docs)]

0 commit comments

Comments
 (0)