jobs-core: remove futures dev-dep

This commit is contained in:
asonix 2021-02-04 12:40:28 -06:00
parent bd51c9d73d
commit b5661fb8e6
2 changed files with 2 additions and 5 deletions

View file

@ -25,6 +25,3 @@ serde_json = "1.0"
thiserror = "1.0" thiserror = "1.0"
tokio = { version = "1", optional = true, default-features = false, features = ["sync"] } tokio = { version = "1", optional = true, default-features = false, features = ["sync"] }
uuid = { version = "0.8.1", features = ["serde", "v4"] } uuid = { version = "0.8.1", features = ["serde", "v4"] }
[dev-dependencies]
futures = "0.3.4"

View file

@ -17,8 +17,8 @@ use std::{future::Future, pin::Pin};
/// ```rust /// ```rust
/// use anyhow::Error; /// use anyhow::Error;
/// use background_jobs_core::{Job, new_job}; /// use background_jobs_core::{Job, new_job};
/// use futures::future::{ok, Ready};
/// use log::info; /// use log::info;
/// use std::future::{ready, Ready};
/// ///
/// #[derive(serde::Deserialize, serde::Serialize)] /// #[derive(serde::Deserialize, serde::Serialize)]
/// struct MyJob { /// struct MyJob {
@ -34,7 +34,7 @@ use std::{future::Future, pin::Pin};
/// fn run(self, _: Self::State) -> Self::Future { /// fn run(self, _: Self::State) -> Self::Future {
/// info!("Processing {}", self.count); /// info!("Processing {}", self.count);
/// ///
/// ok(()) /// ready(Ok(()))
/// } /// }
/// } /// }
/// ///