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

Method source

atomic-core/src/output/repo/error.rs:315–324  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

313
314impl std::error::Error for OutputError {
315 fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
316 match self {
317 Self::Io(err) => Some(err),
318 Self::WorkingCopy(err) => Some(err.as_ref()),
319 Self::ChangeStore(err) => Some(err.as_ref()),
320 Self::Graph(err) => Some(err.as_ref()),
321 Self::Pristine(err) => Some(err.as_ref()),
322 Self::PathNotFound { .. } | Self::InodeNotFound { .. } => None,
323 }
324 }
325}
326
327impl From<std::io::Error> for OutputError {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected