exit_codes.rs
This file
Path
src/exit_codes.rs
13 lines · 243 bytes · Rust
Last changed by
ErrorCode enum variants to be more descriptiveJosh Leeb-du Toitbefore adoptioncb1cfa1
History of this fileTake it
Move exit code consts into enumJosh Leeb-du Toitbefore adoption8bdd8f8
line 1why, one step back1pub enum ExitCode {ErrorCode enum variants to be more descriptiveJosh Leeb-du Toitbefore adoptioncb1cfa1
lines 2–3why, one step back2 GeneralError,3 KilledBySigint,Move exit code consts into enumJosh Leeb-du Toitbefore adoption8bdd8f8
lines 4–8why, one step back4}56impl Into<i32> for ExitCode {7 fn into(self) -> i32 {8 match self {ErrorCode enum variants to be more descriptiveJosh Leeb-du Toitbefore adoptioncb1cfa1
lines 9–10why, one step back9 ExitCode::GeneralError => 1,10 ExitCode::KilledBySigint => 130,Move exit code consts into enumJosh Leeb-du Toitbefore adoption8bdd8f8
lines 11–13why, one step back11 }12 }13}