Skip to content

Commit

Permalink
fix: lessen bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi authored Oct 6, 2023
1 parent e80bb5c commit 147bd3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apalis-cron/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -82,7 +82,7 @@ use std::marker::PhantomData;
#[derive(Clone, Debug)]
pub struct CronStream<J, T>(Schedule, PhantomData<J>, T);

impl<J: From<DateTime<Utc>> + Job + Send + 'static> CronStream<J, ()> {
impl<J> CronStream<J, ()> {
/// Build a new cron stream from a schedule
pub fn new(schedule: Schedule) -> Self {
Self(schedule, PhantomData, ())
Expand Down

0 comments on commit 147bd3d

Please sign in to comment.