mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
msggen: Derive Eq
on generated Enums as well
This commit is contained in:
parent
a298f00229
commit
32f9d78096
BIN
cln-rpc/src/model.rs
generated
BIN
cln-rpc/src/model.rs
generated
Binary file not shown.
@ -85,7 +85,7 @@ def gen_enum(e):
|
||||
|
||||
if e.deprecated:
|
||||
decl += "#[deprecated]\n"
|
||||
decl += f"#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq)]\npub enum {e.typename} {{\n"
|
||||
decl += f"#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]\npub enum {e.typename} {{\n"
|
||||
for v in e.variants:
|
||||
if v is None:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user