mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
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:
committed by
Johannes Altmanninger
parent
97b45dc705
commit
94367b08ba
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user