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

Method fmt

atomic-repository/src/history/operations.rs:101–118  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

99
100impl std::fmt::Display for StateBeforeChange {
101 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
102 match self.parent_sequence {
103 None => write!(
104 f,
105 "First change (seq {}) → state {}",
106 self.change_sequence,
107 &self.change_state.to_base32()[..8]
108 ),
109 Some(parent_seq) => write!(
110 f,
111 "State {} (seq {}) → state {} (seq {})",
112 &self.parent_state.to_base32()[..8],
113 parent_seq,
114 &self.change_state.to_base32()[..8],
115 self.change_sequence
116 ),
117 }
118 }
119}
120
121// QUERY FUNCTIONS

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected