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

Method fmt

libatomic/src/identity_transport.rs:42–60  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

40
41impl fmt::Display for ReconcileReport {
42 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
43 if let Some((remote, local)) = &self.diverged {
44 write!(
45 f,
46 "remote project identity {remote} differs from local {local}; local identity kept"
47 )
48 } else if let Some(adopted) = &self.adopted {
49 if self.replaced_upgrade {
50 write!(
51 f,
52 "Adopted project identity {adopted} (replaced local placeholder)"
53 )
54 } else {
55 write!(f, "Adopted project identity {adopted}")
56 }
57 } else {
58 write!(f, "project identity unchanged")
59 }
60 }
61}
62
63/// Build a transport record from a fetched identity document: recompute the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected