msggen: Derive Eq on generated Enums as well

This commit is contained in:
Christian Decker 2023-01-26 13:57:25 +01:00
parent a298f00229
commit 32f9d78096
2 changed files with 1 additions and 1 deletions

BIN
cln-rpc/src/model.rs generated

Binary file not shown.

View File

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