@@ -40,8 +40,7 @@ bitflags! {
4040 }
4141}
4242
43- #[ repr( u32 ) ]
44- #[ derive( Primitive , Debug , PartialEq , Eq , strum:: FromRepr ) ]
43+ #[ derive( Primitive , Debug , PartialEq , Eq ) ]
4544pub enum KeyType {
4645 Empty = REDISMODULE_KEYTYPE_EMPTY ,
4746 String = REDISMODULE_KEYTYPE_STRING ,
@@ -59,15 +58,13 @@ impl From<c_int> for KeyType {
5958 }
6059}
6160
62- #[ repr( u32 ) ]
63- #[ derive( Primitive , Debug , PartialEq , Eq , strum:: FromRepr ) ]
61+ #[ derive( Primitive , Debug , PartialEq , Eq ) ]
6462pub enum Where {
6563 ListHead = REDISMODULE_LIST_HEAD ,
6664 ListTail = REDISMODULE_LIST_TAIL ,
6765}
6866
69- #[ repr( i32 ) ]
70- #[ derive( Primitive , Debug , PartialEq , Eq , strum:: FromRepr ) ]
67+ #[ derive( Primitive , Debug , PartialEq , Eq ) ]
7168pub enum ReplyType {
7269 Unknown = REDISMODULE_REPLY_UNKNOWN ,
7370 String = REDISMODULE_REPLY_STRING ,
@@ -89,15 +86,13 @@ impl From<c_int> for ReplyType {
8986 }
9087}
9188
92- #[ repr( u32 ) ]
93- #[ derive( Primitive , Debug , PartialEq , Eq , strum:: FromRepr ) ]
89+ #[ derive( Primitive , Debug , PartialEq , Eq ) ]
9490pub enum Aux {
9591 Before = REDISMODULE_AUX_BEFORE_RDB ,
9692 After = REDISMODULE_AUX_AFTER_RDB ,
9793}
9894
99- #[ repr( u32 ) ]
100- #[ derive( Primitive , Debug , PartialEq , Eq , strum:: FromRepr ) ]
95+ #[ derive( Primitive , Debug , PartialEq , Eq ) ]
10196pub enum Status {
10297 Ok = REDISMODULE_OK ,
10398 Err = REDISMODULE_ERR ,
0 commit comments