From 88ce308003be8803e6afaa7c21f261fe59b01c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Kr=C3=BCger?= Date: Tue, 26 Mar 2024 15:18:11 +0100 Subject: [PATCH] refactor: Remove unused constraint, make `type InvocationStoreError: Debug` --- src/invocation/agent.rs | 7 +------ src/invocation/store/traits.rs | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/invocation/agent.rs b/src/invocation/agent.rs index 5862db3b..43d8b26c 100644 --- a/src/invocation/agent.rs +++ b/src/invocation/agent.rs @@ -68,8 +68,6 @@ where D: delegation::store::Store, V: varsig::Header + Clone, C: Codec, - >::InvocationStoreError: fmt::Debug, - >::DelegationStoreError: fmt::Debug, delegation::Payload: TryFrom>, Named: From>, { @@ -291,10 +289,7 @@ pub enum Recipient { } #[derive(Debug, Error, EnumAsInner)] -pub enum ReceiveError, V: varsig::Header, C: Codec> -where - >::InvocationStoreError: fmt::Debug, -{ +pub enum ReceiveError, V: varsig::Header, C: Codec> { #[error("couldn't find delegation: {0}")] DelegationNotFound(Cid), diff --git a/src/invocation/store/traits.rs b/src/invocation/store/traits.rs index 5af8d355..7442d449 100644 --- a/src/invocation/store/traits.rs +++ b/src/invocation/store/traits.rs @@ -1,9 +1,9 @@ use crate::{crypto::varsig, did::Did, invocation::Invocation}; use libipld_core::{cid::Cid, codec::Codec}; -use std::sync::Arc; +use std::{fmt::Debug, sync::Arc}; pub trait Store, C: Codec> { - type InvocationStoreError; + type InvocationStoreError: Debug; fn get( &self,