diff --git a/lib/src/op_heads_store.rs b/lib/src/op_heads_store.rs index e6d02d750..7a88a8498 100644 --- a/lib/src/op_heads_store.rs +++ b/lib/src/op_heads_store.rs @@ -28,13 +28,7 @@ pub enum OpHeadResolutionError { #[error("Operation log has no heads")] NoHeads, #[error("Op resolution error: {0}")] - Err(E), -} - -impl From for OpHeadResolutionError { - fn from(e: E) -> Self { - OpHeadResolutionError::Err(e) - } + Err(#[from] E), } pub trait OpHeadsStoreLock<'a> {