diff --git a/Cargo.toml b/Cargo.toml index ad6bdf0..b003252 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ homepage = "https://github.com/al8n/wg" repository = "https://github.com/al8n/wg.git" documentation = "https://docs.rs/wg/" readme = "README.md" -version = "0.7.0" +version = "0.7.1" license = "MIT OR Apache-2.0" keywords = ["waitgroup", "async", "sync", "notify", "wake"] categories = ["asynchronous", "concurrency", "data-structures"] @@ -20,7 +20,7 @@ parking_lot = ["dep:parking_lot"] future = ["event-listener", "event-listener-strategy", "pin-project-lite"] -tokio = ["dep:tokio", "futures-core"] +tokio = ["dep:tokio", "futures-core", "pin-project-lite"] [dependencies] parking_lot = { version = "0.12", optional = true } diff --git a/src/future.rs b/src/future.rs index 698f868..2c51d08 100644 --- a/src/future.rs +++ b/src/future.rs @@ -115,11 +115,11 @@ impl AsyncWaitGroup { /// new `add` calls must happen after all previous [`wait`] calls have returned. /// /// # Example - /// + /// /// ```rust /// use wg::future::AsyncWaitGroup; /// use async_std::task::spawn; - /// + /// /// # async_std::task::block_on(async { /// let wg = AsyncWaitGroup::new(); /// @@ -181,7 +181,7 @@ impl AsyncWaitGroup { /// ```rust /// use wg::future::AsyncWaitGroup; /// use async_std::task::spawn; - /// + /// /// # async_std::task::block_on(async { /// let wg = AsyncWaitGroup::new(); /// wg.add(1); @@ -211,7 +211,7 @@ impl AsyncWaitGroup { /// ```rust /// use wg::future::AsyncWaitGroup; /// use async_std::task::spawn; - /// + /// /// # async_std::task::block_on(async { /// let wg = AsyncWaitGroup::new(); /// wg.add(1);