mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
msggen: Allow non_camel_case for notification
In rust enum are expected to be CamelCase. However, we are generating enum's using CAPITAL_SNAKE_CASE. This generates a warning and breaks CI. See `cln_rpc::notifications::ConnectAddressType::LOCAL_SOCKET`
This commit is contained in:
parent
c1062b1db7
commit
151975b282
2 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
#![allow(non_camel_case_types)]
|
||||
// This file is autogenerated by `msggen`
|
||||
// Do not edit it manually, your changes will be overwritten
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ class NotificationGenerator(IGenerator):
|
|||
self.write("}\n")
|
||||
|
||||
def generate(self, service: Service) -> None:
|
||||
self.write("#![allow(non_camel_case_types)]\n")
|
||||
self.write("// This file is autogenerated by `msggen`\n")
|
||||
self.write("// Do not edit it manually, your changes will be overwritten\n\n\n")
|
||||
self.write("\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue