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:
Erik De Smedt 2024-02-19 10:27:24 +01:00 committed by Christian Decker
parent c1062b1db7
commit 151975b282
2 changed files with 2 additions and 0 deletions

View file

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

View file

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