diff --git a/node/core/provisioner/src/lib.rs b/node/core/provisioner/src/lib.rs index b8af4852a0dc..4d4f153d334d 100644 --- a/node/core/provisioner/src/lib.rs +++ b/node/core/provisioner/src/lib.rs @@ -42,6 +42,7 @@ use polkadot_primitives::v1::{ SignedAvailabilityBitfield, }; use std::{collections::HashMap, convert::TryFrom, pin::Pin}; +use thiserror::Error; struct ProvisioningJob { relay_parent: Hash, @@ -115,18 +116,24 @@ impl TryFrom for FromJob { } } -#[derive(Debug, derive_more::From)] +#[derive(Debug, Error)] enum Error { - #[from] + #[error(transparent)] Sending(mpsc::SendError), - #[from] + + #[error(transparent)] Util(util::Error), - #[from] + + #[error(transparent)] OneshotRecv(oneshot::Canceled), - #[from] + + #[error(transparent)] ChainApi(ChainApiError), - #[from] + + #[error(transparent)] Runtime(RuntimeApiError), + + #[error("Oneshot send failed")] OneshotSend, }