diff --git a/radicle-crdt/src/redactable.rs b/radicle-crdt/src/redactable.rs index 326ad331..952babdb 100644 --- a/radicle-crdt/src/redactable.rs +++ b/radicle-crdt/src/redactable.rs @@ -47,10 +47,7 @@ impl From> for Option { impl<'a, T> From<&'a Redactable> for Option<&'a T> { fn from(redactable: &'a Redactable) -> Self { - match redactable { - Redactable::Present(v) => Some(v), - Redactable::Redacted => None, - } + redactable.get() } }