diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2024-10-12 14:23:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-12 14:23:49 -0700 |
commit | 2ac699fe6e5b69f656046c5a9657542dc1cf2e9d (patch) | |
tree | c5999055791ab3ee740f8d9975d641e17aa05d42 /ext/cron/interface.rs | |
parent | 4f89225f76ca67e8a6385bbc52a73c284cc3402c (diff) |
refactor(ext/cron): use concrete error type (#26135)
Diffstat (limited to 'ext/cron/interface.rs')
-rw-r--r-- | ext/cron/interface.rs | 6 |
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); } |