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

Function codec_error

atomic-core/src/pristine/file_index_v2.rs:408–412  ·  view source on GitHub ↗
(message: impl Into<String>)

Source from the content-addressed store, hash-verified

406 .then(|| Hash::from(<[u8; 32]>::try_from(src).unwrap()))
407}
408fn codec_error(message: impl Into<String>) -> PristineError {
409 PristineError::Serialization {
410 message: message.into(),
411 }
412}
413
414#[cfg(test)]
415mod tests {

Callers 7

newMethod · 0.70
decodeMethod · 0.70
completeMethod · 0.70
decode_file_index_v2Function · 0.70
validate_pathFunction · 0.70
validate_entryFunction · 0.70
validate_presenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected