Skip to content

Commit bd40509

Browse files
committed
Avoid needing a nightly feature in false util
1 parent 8379383 commit bd40509

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/bin/false.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
#![feature(exitcode_exit_method)]
2-
3-
use std::{io::stdout, process::ExitCode};
1+
use std::{io::stdout, process::exit};
42

53
use puppyutils::{Result, cli_with_args};
4+
use rustix::process::EXIT_FAILURE;
65
use sap::Parser;
76

8-
fn main() -> Result {
7+
pub fn main() -> Result {
98
let args = std::env::args_os();
109

1110
if args.len() == 2 {
@@ -15,5 +14,5 @@ fn main() -> Result {
1514
cli_with_args!(args_parser, "false", stdout, #ignore);
1615
}
1716

18-
ExitCode::FAILURE.exit_process()
17+
exit(EXIT_FAILURE);
1918
}

0 commit comments

Comments
 (0)