Skip to content

Commit b6d02f3

Browse files
Philipp91prokopyl
andauthored
Add allow(non_camel_case_types) to generated type (#92)
Currently, rust-analyzer complains: ``` Structure `__lv2_plugin_ports_derive_Ports_PortPointerCache` should have CamelCase name, e.g. `Lv2PluginPortsDerivePortsPortPointerCache` ``` As of [this commit](https://github.com/rust-analyzer/rust-analyzer/pull/6421/files), rust-analyzer will honor `allow(non_camel_case_types)`, so I'm trying to add it here. I have no idea if this actually works though. Co-authored-by: Adrien Prokopowicz <[email protected]>
1 parent aa58d5c commit b6d02f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/derive/src/port_collection_derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl<'a> PortCollectionStruct<'a> {
128128
}
129129

130130
#[doc(hidden)]
131-
#[allow(non_snake_case)]
131+
#[allow(non_snake_case, non_camel_case_types)]
132132
pub struct #internal_cache_name {
133133
#(#raw_field_declarations)*
134134
}

0 commit comments

Comments
 (0)