(exit_code: ExitCode)
| 304 | } |
| 305 | |
| 306 | pub fn to_code(exit_code: ExitCode) -> Code { |
| 307 | if exit_code.is_success() { |
| 308 | Code::Ok |
| 309 | } else { |
| 310 | Code::Err(NonZeroU32::try_from(exit_code.value()).expect("error codes are non-zero")) |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | pub fn to_error_msg(exit_code: ExitCode) -> &'static str { |
| 315 | match exit_code { |
no outgoing calls
no test coverage detected