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

Method fmt

atomic-repository/src/parallel_record/mod.rs:173–182  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

171
172impl fmt::Display for FileRecordInput {
173 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
174 let kind = match self.kind {
175 FileRecordKind::Added => "add",
176 FileRecordKind::Modified => "mod",
177 FileRecordKind::Deleted => "del",
178 FileRecordKind::DirectoryAdded => "dir+",
179 FileRecordKind::DirectoryDeleted => "dir-",
180 };
181 write!(f, "[{}] {}", kind, self.path)
182 }
183}
184
185// ═══════════════════════════════════════════════════════════════════════

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected