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

Method fmt

atomic-core/src/output/repo/file.rs:470–480  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

468
469impl<WE: std::fmt::Debug> std::fmt::Display for FileOutputError<WE> {
470 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
471 match self {
472 Self::Graph(e) => write!(f, "Graph error: {}", e),
473 Self::ChangeStore(e) => write!(f, "Change store error: {}", e),
474 Self::Io(e) => write!(f, "I/O error: {}", e),
475 Self::WorkingCopy(e) => write!(f, "Working copy error: {:?}", e),
476 Self::Output(e) => write!(f, "Output error: {e}"),
477 Self::PositionNotFound(pos) => write!(f, "Position not found: {:?}", pos),
478 Self::InodeNotFound(inode) => write!(f, "Inode not found: {:?}", inode),
479 }
480 }
481}
482
483impl<WE: std::fmt::Debug + std::error::Error + 'static> std::error::Error for FileOutputError<WE> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected