From 94367b08ba58907e9bb13377b348ef21d71931ff Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Sun, 23 Nov 2025 19:40:20 +0100 Subject: [PATCH] cleanup: do not set enum variant to value This seems to be a left-over detail from the C++ version. Setting the first element to 0 does not have any effect, since that's the default, and setting it to 1 seems to serve no purpose in the current code. Part of #12101 --- src/builtins/status.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/status.rs b/src/builtins/status.rs index 753a0afaa..1bdfca473 100644 --- a/src/builtins/status.rs +++ b/src/builtins/status.rs @@ -40,7 +40,7 @@ fn to_wstr(self) -> &'static wstr { use StatusCmd::*; #[derive(Clone, Copy)] enum StatusCmd { - STATUS_CURRENT_CMD = 1, + STATUS_CURRENT_CMD, STATUS_BASENAME, STATUS_DIRNAME, STATUS_FEATURES, @@ -110,7 +110,7 @@ enum StatusCmd { /// Values that may be returned from the test-feature option to status. #[repr(i32)] enum TestFeatureRetVal { - TEST_FEATURE_ON = 0, + TEST_FEATURE_ON, TEST_FEATURE_OFF, TEST_FEATURE_NOT_RECOGNIZED, }