(&self)
| 313 | |
| 314 | impl 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 | |
| 327 | impl From<std::io::Error> for OutputError { |