Return Termination
from main
instead of using std::process::exit
#129
Labels
enhancement
New feature or request
Rust 2018 allows
main
to return values that implement theTermination
trait (i.e. that can be converted into an exit code. We should use this to exit cleanly frommain
instead of callingstd::process::exit()
, which doesn't run any global cleanup. See https://doc.rust-lang.org/edition-guide/rust-2018/error-handling-and-panics/question-mark-in-main-and-tests.html#more-details for detailsThe text was updated successfully, but these errors were encountered: