diff --git a/radicle-crdt/src/clock.rs b/radicle-crdt/src/clock.rs index 139ade84..888cd11d 100644 --- a/radicle-crdt/src/clock.rs +++ b/radicle-crdt/src/clock.rs @@ -1,6 +1,7 @@ use serde::{Deserialize, Serialize}; use crate::ord::Max; +use crate::Semilattice as _; /// Lamport clock. #[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)] diff --git a/radicle-crdt/src/ord.rs b/radicle-crdt/src/ord.rs index c6115cdc..948ec8b4 100644 --- a/radicle-crdt/src/ord.rs +++ b/radicle-crdt/src/ord.rs @@ -19,14 +19,6 @@ impl Max { } } -impl Max { - pub fn merge(&mut self, other: Self) { - if other.0 > self.0 { - self.0 = other.0; - } - } -} - impl Max { pub fn incr(&mut self) { self.0 = self.0.saturating_add(&T::one());