Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::process::ExitCode's SUCCESS and FAILURE #17

Open
lelandjansen opened this issue Mar 31, 2019 · 0 comments
Open

Use std::process::ExitCode's SUCCESS and FAILURE #17

lelandjansen opened this issue Mar 31, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lelandjansen
Copy link
Owner

exit_code.rs provides various exit codes such as SUCCESS, FAILURE, USAGE, OSERR, CONFIG, etc. specified in /usr/include/sysexits.h. We should replace exit_code::SUCCESS and exit_code::FAILURE with std::process::ExitCode::SUCCESS and std::process::ExitCode::FAILURE, respectively, when the API stabilizes.

API docs: https://doc.rust-lang.org/std/process/struct.ExitCode.html
PR: rust-lang/rust#48711

Introduced by #13.

@lelandjansen lelandjansen added the enhancement New feature or request label Mar 31, 2019
@lelandjansen lelandjansen self-assigned this Mar 31, 2019
@lelandjansen lelandjansen changed the title Use std::process::ExitCode's SUCCESS and FAILURE Use std::process::ExitCode's SUCCESS and FAILURE Mar 31, 2019
@lelandjansen lelandjansen changed the title Use std::process::ExitCode's SUCCESS and FAILURE Use std::process::ExitCode's SUCCESS and FAILURE Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant