diff --git a/Cargo.toml b/Cargo.toml index 74668ce..4f5c4a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "garcon" -version = "0.2.0" +version = "0.2.1" authors = ["Hans Larsen "] edition = "2018" description = "A collection of trait and classes to make your thread or async function wait." diff --git a/rust-toolchain b/rust-toolchain index 5a5c721..21998d3 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.50.0 +1.47.0 diff --git a/src/lib.rs b/src/lib.rs index 46f97b8..fda8600 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,7 @@ pub trait Waiter: WaiterClone + Send + Sync { /// to be non-blocking. #[cfg(feature = "async")] fn async_wait(&mut self) -> Pin> + Send>> { - Box::pin(future::ready(self.wait())) + Box::pin(futures_util::future::ready(self.wait())) } }