summaryrefslogtreecommitdiff
path: root/ext/cron/interface.rs
diff options
context:
space:
mode:
authorhaturau <135221985+haturatu@users.noreply.github.com>2024-10-13 10:44:12 +0900
committerGitHub <noreply@github.com>2024-10-13 10:44:12 +0900
commitcedfd657a6a2f04d841db2b3fc3d7694de95eada (patch)
tree0d5d1c95cfd35bc46c230ea71f4dbf23aa0aaeea /ext/cron/interface.rs
parent4da77059dfd5b8d7591aa8e3b9f04386fbdce221 (diff)
parent64c304a45265705832ebb4ab4e9ef19f899ac911 (diff)
Merge branch 'denoland:main' into main
Diffstat (limited to 'ext/cron/interface.rs')
-rw-r--r--ext/cron/interface.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/cron/interface.rs b/ext/cron/interface.rs
index 01b1d1789..a19525cc4 100644
--- a/ext/cron/interface.rs
+++ b/ext/cron/interface.rs
@@ -1,17 +1,17 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+use crate::CronError;
use async_trait::async_trait;
-use deno_core::error::AnyError;
pub trait CronHandler {
type EH: CronHandle + 'static;
- fn create(&self, spec: CronSpec) -> Result<Self::EH, AnyError>;
+ fn create(&self, spec: CronSpec) -> Result<Self::EH, CronError>;
}
#[async_trait(?Send)]
pub trait CronHandle {
- async fn next(&self, prev_success: bool) -> Result<bool, AnyError>;
+ async fn next(&self, prev_success: bool) -> Result<bool, CronError>;
fn close(&self);
}