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
This commit is contained in:
Daniel Rainer
2025-11-23 19:40:20 +01:00
committed by Johannes Altmanninger
parent 97b45dc705
commit 94367b08ba

View File

@@ -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,
}