| 11 | impl std::error::Error for Error {} |
| 12 | |
| 13 | pub(crate) trait Context<T> { |
| 14 | fn cmd_context(self, cmd: &Cmd) -> Result<T>; |
| 15 | fn proc_context(self, proc: &Child) -> Result<T>; |
| 16 | } |
| 17 | impl<T, E: fmt::Display> Context<T> for Result<T, E> { |
| 18 | fn cmd_context(self, cmd: &Cmd) -> Result<T> { |
| 19 | self.map_err(|err| Error::cmd(cmd, &err)) |
nothing calls this directly
no outgoing calls
no test coverage detected