Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: remove unnecessary constraints
Fintan Halpenny committed 10 months ago
commit 38ff2652b1290cd3a368058e4be0613975f20de7
parent 895ca5d025fb63d9fab854ac4fffdcdd67ba6767
2 files changed +4 -4
modified crates/radicle-cob/src/object/collaboration.rs
@@ -63,7 +63,7 @@ impl<T> CollaborativeObject<T> {
}

/// An object that can be built by evaluating a history.
-
pub trait Evaluate<R>: Sized + Debug + 'static {
+
pub trait Evaluate<R>: Sized {
    type Error: std::error::Error + Send + Sync + 'static;

    /// Initialize the object with the first (root) history entry.
modified crates/radicle/src/cob/store.rs
@@ -17,7 +17,7 @@ use crate::storage::git as storage;
use crate::storage::SignRepository;
use crate::{cob, identity};

-
pub trait CobAction: Debug {
+
pub trait CobAction {
    /// Parent objects this action depends on. For example, patch revisions
    /// have the commit objects as their parent.
    fn parents(&self) -> Vec<git::Oid> {
@@ -43,7 +43,7 @@ pub trait CobAction: Debug {
}

/// A collaborative object. Can be materialized from an operation history.
-
pub trait Cob: Sized + PartialEq + Debug {
+
pub trait Cob: Sized {
    /// The underlying action composing each operation.
    type Action: CobAction + for<'de> Deserialize<'de> + Serialize;
    /// Error returned by `apply` function.
@@ -331,7 +331,7 @@ where
impl<'a, T, R> Store<'a, T, R>
where
    R: ReadRepository + cob::Store,
-
    T: Cob + cob::Evaluate<R>,
+
    T: Cob + cob::Evaluate<R> + 'a,
    T::Action: Serialize,
{
    /// Get an object.