radcile/cob/identity: mark ApplyError as non_exhaustive
This commit is contained in:
parent
d596b14e48
commit
1566646762
|
|
@ -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::Redacted
|
||||||
| e @ radicle::cob::identity::ApplyError::DocUnchanged
|
| e @ radicle::cob::identity::ApplyError::DocUnchanged
|
||||||
| e @ radicle::cob::identity::ApplyError::Git(_)
|
| e @ radicle::cob::identity::ApplyError::Git(_)
|
||||||
| e @ radicle::cob::identity::ApplyError::Doc(_) => {
|
| e @ radicle::cob::identity::ApplyError::Doc(_)
|
||||||
|
| e => {
|
||||||
anyhow!(e.to_string())
|
anyhow!(e.to_string())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,7 @@ impl CobAction for Action {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Error applying an operation onto a state.
|
/// Error applying an operation onto a state.
|
||||||
|
#[non_exhaustive]
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum ApplyError {
|
pub enum ApplyError {
|
||||||
/// Causal dependency missing.
|
/// Causal dependency missing.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue