From 529d5fdb813c47d6c8ce10e39ed5023e650fd3fe Mon Sep 17 00:00:00 2001 From: Ahurac Date: Wed, 10 Apr 2024 12:37:40 +0200 Subject: [PATCH] command : suppression d'un nombre magique --- src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.rs b/src/command.rs index 64112cd..d46b1a3 100644 --- a/src/command.rs +++ b/src/command.rs @@ -92,7 +92,7 @@ impl Command for UnixProgram { let exit_code = match u8::try_from(exit_code) { Ok(code) => ExitCode::new(code), - Err(_e) => ExitCode::new(255), + Err(_e) => ExitCode::new(u8::MAX), }; exit_code