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

Method fmt

atomic-repository/src/error.rs:29–36  ·  view source on GitHub ↗
(&self, formatter: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

27
28impl fmt::Display for RepositoryLockKind {
29 fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
30 match self {
31 Self::Common => formatter.write_str("common repository operation lock"),
32 Self::WorkingCopy { id } => write!(formatter, "working-copy operation lock for {id}"),
33 Self::Shelf { id } => write!(formatter, "working-copy shelf lock for {id}"),
34 Self::DeferredTree => formatter.write_str("deferred-tree operation lock"),
35 }
36 }
37}
38
39/// Errors that can occur during repository operations

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected