mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-24 21:11:03 +00:00
jobs-core: remove futures dev-dep
This commit is contained in:
parent
bd51c9d73d
commit
b5661fb8e6
2 changed files with 2 additions and 5 deletions
|
@ -25,6 +25,3 @@ serde_json = "1.0"
|
|||
thiserror = "1.0"
|
||||
tokio = { version = "1", optional = true, default-features = false, features = ["sync"] }
|
||||
uuid = { version = "0.8.1", features = ["serde", "v4"] }
|
||||
|
||||
[dev-dependencies]
|
||||
futures = "0.3.4"
|
||||
|
|
|
@ -17,8 +17,8 @@ use std::{future::Future, pin::Pin};
|
|||
/// ```rust
|
||||
/// use anyhow::Error;
|
||||
/// use background_jobs_core::{Job, new_job};
|
||||
/// use futures::future::{ok, Ready};
|
||||
/// use log::info;
|
||||
/// use std::future::{ready, Ready};
|
||||
///
|
||||
/// #[derive(serde::Deserialize, serde::Serialize)]
|
||||
/// struct MyJob {
|
||||
|
@ -34,7 +34,7 @@ use std::{future::Future, pin::Pin};
|
|||
/// fn run(self, _: Self::State) -> Self::Future {
|
||||
/// info!("Processing {}", self.count);
|
||||
///
|
||||
/// ok(())
|
||||
/// ready(Ok(()))
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue