diff --git a/src/exporters/besu.rs b/src/exporters/besu.rs index d24d924..4c5653e 100644 --- a/src/exporters/besu.rs +++ b/src/exporters/besu.rs @@ -21,6 +21,7 @@ const TRACE_COLUMNS_TEMPLATE: &str = include_str!("besu_trace_columns.java"); #[derive(Serialize)] struct BesuColumn { + class: String, corset_name: String, java_name: String, appender: String, @@ -240,6 +241,7 @@ pub fn render( let r = c.register.unwrap(); let register = reg_to_string(&cs.columns.registers[r], r).to_case(Case::Camel); Some(BesuColumn { + class: class.to_owned(), corset_name: c.handle.to_string(), java_name: c.handle.name.to_case(Case::Camel), appender: handle_to_appender(&c.handle), diff --git a/src/exporters/besu_trace_columns.java b/src/exporters/besu_trace_columns.java index 4e1ee26..10a8e6d 100644 --- a/src/exporters/besu_trace_columns.java +++ b/src/exporters/besu_trace_columns.java @@ -31,7 +31,7 @@ *
Any modifications to this code may be overwritten and could lead to unexpected behavior.
* Please DO NOT ATTEMPT TO MODIFY this code directly.
*/
-public class {{ class }} {
+public class {{ this.class }} {
{{#each constants}}
public static final {{ this.tupe }} {{ this.name }} = {{ this.value }};
{{/each}}
@@ -51,7 +51,7 @@ static List