radcile/cob/identity: mark ApplyError as non_exhaustive

This commit is contained in:
Fintan Halpenny 2026-02-18 10:51:54 +00:00 committed by Lorenz Leutgeb
parent d596b14e48
commit 1566646762
2 changed files with 3 additions and 1 deletions

View File

@ -482,7 +482,8 @@ fn on_apply_err(e: &identity::ApplyError, profile: &Profile) -> anyhow::Error {
| e @ radicle::cob::identity::ApplyError::Redacted
| e @ radicle::cob::identity::ApplyError::DocUnchanged
| e @ radicle::cob::identity::ApplyError::Git(_)
| e @ radicle::cob::identity::ApplyError::Doc(_) => {
| e @ radicle::cob::identity::ApplyError::Doc(_)
| e => {
anyhow!(e.to_string())
}
}

View File

@ -95,6 +95,7 @@ impl CobAction for Action {
}
/// Error applying an operation onto a state.
#[non_exhaustive]
#[derive(Error, Debug)]
pub enum ApplyError {
/// Causal dependency missing.