From b5661fb8e656b58a10d4721ea719faa1de1f8fd4 Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 4 Feb 2021 12:40:28 -0600 Subject: [PATCH] jobs-core: remove futures dev-dep --- jobs-core/Cargo.toml | 3 --- jobs-core/src/job.rs | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) 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(())) /// } /// } ///