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

Method fmt

atomic-objects/src/sync.rs:278–286  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

276
277impl std::fmt::Display for SyncError {
278 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
279 match self {
280 SyncError::Codec(e) => write!(f, "sync codec error: {e}"),
281 SyncError::Compression(e) => write!(f, "sync compression error: {e}"),
282 SyncError::TooLarge { limit } => {
283 write!(f, "decompressed sync body exceeds {limit} bytes")
284 }
285 }
286 }
287}
288
289impl std::error::Error for SyncError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected