MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-core/src/output/crdt.rs:476–484  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

474
475impl<E: std::fmt::Display> std::fmt::Display for CrdtOutputError<E> {
476 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
477 match self {
478 CrdtOutputError::Pristine(e) => write!(f, "pristine error: {}", e),
479 CrdtOutputError::Store(e) => write!(f, "change store error: {}", e),
480 CrdtOutputError::OrphanBranch(b) => {
481 write!(f, "branch {} has no BRANCH_VERTEX mapping", b)
482 }
483 }
484 }
485}
486
487impl<E: std::error::Error + 'static> std::error::Error for CrdtOutputError<E> {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected