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

Method fmt

atomic-core/src/record/workflow/graph_op/hunk.rs:338–362  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

336
337impl fmt::Display for BuiltHunk {
338 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
339 match self.kind {
340 BuiltHunkKind::Insert => {
341 write!(f, "Insert at {}:{}", self.local.path, self.local.line)
342 }
343 BuiltHunkKind::Delete => {
344 write!(
345 f,
346 "Delete {} line(s) at {}:{}",
347 self.deleted_lines.len(),
348 self.local.path,
349 self.local.line
350 )
351 }
352 BuiltHunkKind::Replace => {
353 write!(
354 f,
355 "Replace {} line(s) at {}:{}",
356 self.deleted_lines.len(),
357 self.local.path,
358 self.local.line
359 )
360 }
361 }
362 }
363}
364
365// HUNK BUILD RESULT

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected