diff --git a/jobs-core/Cargo.toml b/jobs-core/Cargo.toml index abbc5c2..63705ed 100644 --- a/jobs-core/Cargo.toml +++ b/jobs-core/Cargo.toml @@ -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" diff --git a/jobs-core/src/job.rs b/jobs-core/src/job.rs index e0c5b1b..18de27a 100644 --- a/jobs-core/src/job.rs +++ b/jobs-core/src/job.rs @@ -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(())) /// } /// } ///