From 147bd3da00875bd611086f38d7760084cff2f222 Mon Sep 17 00:00:00 2001 From: Geoffrey Mureithi <95377562+geofmureithi@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:39:00 +0300 Subject: [PATCH] fix: lessen bounds --- packages/apalis-cron/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/apalis-cron/src/lib.rs b/packages/apalis-cron/src/lib.rs index d306b89..f126663 100644 --- a/packages/apalis-cron/src/lib.rs +++ b/packages/apalis-cron/src/lib.rs @@ -72,7 +72,7 @@ use apalis_core::job::Job; use apalis_core::utils::Timer; use apalis_core::{error::JobError, request::JobRequest}; -use chrono::{DateTime, NaiveDateTime, TimeZone, Utc}; +use chrono::{DateTime, TimeZone, Utc}; pub use cron::Schedule; use futures::stream::BoxStream; use futures::StreamExt; @@ -82,7 +82,7 @@ use std::marker::PhantomData; #[derive(Clone, Debug)] pub struct CronStream(Schedule, PhantomData, T); -impl> + Job + Send + 'static> CronStream { +impl CronStream { /// Build a new cron stream from a schedule pub fn new(schedule: Schedule) -> Self { Self(schedule, PhantomData, ())