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

Method fmt

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

Source from the content-addressed store, hash-verified

138
139impl std::fmt::Display for MemoryError {
140 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
141 match self {
142 MemoryError::NotFound { path } => write!(f, "File not found: {}", path),
143 MemoryError::NotADirectory { path } => write!(f, "Not a directory: {}", path),
144 MemoryError::IsADirectory { path } => write!(f, "Is a directory: {}", path),
145 MemoryError::PermissionDenied { path } => write!(f, "Permission denied: {}", path),
146 MemoryError::AlreadyExists { path } => write!(f, "Already exists: {}", path),
147 MemoryError::DirectoryNotEmpty { path } => write!(f, "Directory not empty: {}", path),
148 }
149 }
150}
151
152impl std::error::Error for MemoryError {}

Callers

nothing calls this directly

Calls 2

finishMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected