From 705e11fcabd8bc900d4ea882f18edf325044c336 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Thu, 11 Apr 2024 21:35:00 +0200 Subject: [PATCH] exit_code : ajout d'un nouveau nombre magique `success` --- src/exit_code.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/exit_code.rs b/src/exit_code.rs index 9ee70d5..54f6501 100644 --- a/src/exit_code.rs +++ b/src/exit_code.rs @@ -14,4 +14,8 @@ impl ExitCode { pub fn not_found() -> Self { Self { exit_code: 127 } } + + pub fn success() -> Self { + Self { exit_code: 0 } + } }