We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8379383 commit bd40509Copy full SHA for bd40509
src/bin/false.rs
@@ -1,11 +1,10 @@
1
-#![feature(exitcode_exit_method)]
2
-
3
-use std::{io::stdout, process::ExitCode};
+use std::{io::stdout, process::exit};
4
5
use puppyutils::{Result, cli_with_args};
+use rustix::process::EXIT_FAILURE;
6
use sap::Parser;
7
8
-fn main() -> Result {
+pub fn main() -> Result {
9
let args = std::env::args_os();
10
11
if args.len() == 2 {
@@ -15,5 +14,5 @@ fn main() -> Result {
15
14
cli_with_args!(args_parser, "false", stdout, #ignore);
16
}
17
18
- ExitCode::FAILURE.exit_process()
+ exit(EXIT_FAILURE);
19
0 commit comments