From 496c40ddd48b1cac6f408bef39c5a79005865971 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 7 Jan 2024 18:54:14 -0600 Subject: [PATCH] Remove UnwindSafe bound on Unsend jobs --- jobs-actix/src/actix_job.rs | 2 +- jobs-core/src/unsend_job.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs-actix/src/actix_job.rs b/jobs-actix/src/actix_job.rs index 38f8f57..b3e748d 100644 --- a/jobs-actix/src/actix_job.rs +++ b/jobs-actix/src/actix_job.rs @@ -48,7 +48,7 @@ impl Drop for ActixHandle { /// This trait is used to implement generic Unsend Jobs in the background jobs library. It requires /// that implementors specify a spawning mechanism that can turn an Unsend future into a Send /// future -pub trait ActixJob: Serialize + DeserializeOwned + std::panic::UnwindSafe + 'static { +pub trait ActixJob: Serialize + DeserializeOwned + 'static { /// The application state provided to this job at runtime. type State: Clone + 'static; diff --git a/jobs-core/src/unsend_job.rs b/jobs-core/src/unsend_job.rs index 77d5aa4..3da1d30 100644 --- a/jobs-core/src/unsend_job.rs +++ b/jobs-core/src/unsend_job.rs @@ -148,7 +148,7 @@ where impl Job for T where - T: UnsendJob + std::panic::UnwindSafe, + T: UnsendJob, { type State = T::State; type Future = UnwrapFuture<::Handle>>;