Skip to content

Commit 82a8051

Browse files
committed
msggen: fix primitive serialization for special names
1 parent 10b10eb commit 82a8051

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cln-rpc/src/model.rs

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contrib/msggen/msggen/gen/rpc/rust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def gen_primitive(p):
209209

210210
if p.deprecated:
211211
defi += " #[deprecated]\n"
212-
defi += rename_if_necessary(org, p.name.name)
212+
defi += rename_if_necessary(org, p.name.normalized())
213213
if not p.optional:
214214
defi += f" pub {p.name.normalized()}: {typename},\n"
215215
else:

0 commit comments

Comments
 (0)