(self)
| 20 | |
| 21 | impl ErrorKind { |
| 22 | pub fn exit_code(self) -> i32 { |
| 23 | match self { |
| 24 | Self::Internal => 1, |
| 25 | Self::InvalidInput => 2, |
| 26 | Self::UnsupportedPlatform => 3, |
| 27 | Self::Network => 4, |
| 28 | Self::NotFound => 5, |
| 29 | Self::Conflict => 6, |
| 30 | Self::NotImplemented => 7, |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | #[derive(Debug, Error)] |
no outgoing calls
no test coverage detected