diff options
Diffstat (limited to '')
-rw-r--r-- | futures/src/backend/null.rs (renamed from futures/src/executor/null.rs) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/futures/src/executor/null.rs b/futures/src/backend/null.rs index 65e2e2df..e22e7921 100644 --- a/futures/src/executor/null.rs +++ b/futures/src/backend/null.rs @@ -1,12 +1,11 @@ -use crate::Executor; - +//! A backend that does nothing! use futures::Future; /// An executor that drops all the futures, instead of spawning them. #[derive(Debug)] -pub struct Null; +pub struct Executor; -impl Executor for Null { +impl crate::Executor for Executor { fn new() -> Result<Self, futures::io::Error> { Ok(Self) } |