Skip to main content

cargo_msrv/
exit_code.rs

1/// Exit codes returned by cargo-msrv
2pub enum ExitCode {
3    Success,
4    Failure,
5}
6
7impl From<ExitCode> for i32 {
8    fn from(code: ExitCode) -> Self {
9        match code {
10            ExitCode::Success => 0,
11            ExitCode::Failure => 1,
12        }
13    }
14}