diff --git a/src/tcs_helpers.rs b/src/tcs_helpers.rs index 3ca7463..abc58d5 100644 --- a/src/tcs_helpers.rs +++ b/src/tcs_helpers.rs @@ -5,7 +5,6 @@ use tracing::{error, info, warn}; use uuid::Uuid; pub async fn run_example(sched: &mut JobScheduler) -> Result, JobSchedulerError> { - #[cfg(feature = "signal")] sched.shutdown_on_ctrl_c(); sched.set_shutdown_handler(Box::new(|| { @@ -181,7 +180,6 @@ pub async fn run_example(sched: &mut JobScheduler) -> Result, JobSched let jhb_job_guid = jhb_job.guid(); sched.add(jhb_job).await.unwrap(); - #[cfg(feature = "english")] let english_job_guid = { let english_job = JobBuilder::new() .with_timezone(Utc) @@ -220,7 +218,6 @@ pub async fn run_example(sched: &mut JobScheduler) -> Result, JobSched jja_guid, utc_job_guid, jhb_job_guid, - #[cfg(feature = "english")] english_job_guid, ]; Ok(ret) @@ -243,10 +240,6 @@ pub async fn stop_example( Ok(()) } -fn main() { - eprintln!("Should not be run on its own."); -} - #[cfg(test)] mod test { use tokio_cron_scheduler::{Job, JobScheduler};