(exit_code: ExitCode)
| 329 | } |
| 330 | |
| 331 | pub fn to_code(exit_code: ExitCode) -> Code { |
| 332 | if exit_code.is_success() { |
| 333 | Code::Ok |
| 334 | } else { |
| 335 | Code::Err(NonZeroU32::try_from(exit_code.value()).expect("error codes are non-zero")) |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | pub fn to_error_msg(exit_code: ExitCode) -> &'static str { |
| 340 | match exit_code { |
no outgoing calls
no test coverage detected