diff options
Diffstat (limited to 'tokio-executor/src/park.rs')
-rw-r--r-- | tokio-executor/src/park.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tokio-executor/src/park.rs b/tokio-executor/src/park.rs index 073c4fef..b7c4dbf0 100644 --- a/tokio-executor/src/park.rs +++ b/tokio-executor/src/park.rs @@ -44,13 +44,12 @@ //! [up]: trait.Unpark.html //! [mio]: https://docs.rs/mio/0.6/mio/struct.Poll.html +use crossbeam_utils::sync::{Parker, Unparker}; use std::marker::PhantomData; use std::rc::Rc; use std::sync::Arc; use std::time::Duration; -use crossbeam_utils::sync::{Parker, Unparker}; - /// Block the current thread. /// /// See [module documentation][mod] for more details. @@ -128,13 +127,13 @@ pub trait Unpark: Sync + Send + 'static { fn unpark(&self); } -impl Unpark for Box<Unpark> { +impl Unpark for Box<dyn Unpark> { fn unpark(&self) { (**self).unpark() } } -impl Unpark for Arc<Unpark> { +impl Unpark for Arc<dyn Unpark> { fn unpark(&self) { (**self).unpark() } |