From f189d982951f7f0e2c3560a20c0d1d8a2b6431d0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 14 Jul 2026 19:49:24 +0100 Subject: Derive Debug and PartialEq for generated Rust types --- examples/07-native-type-custom-config/output/rust/src/main.rs | 1 + examples/07-native-type-custom-config/output/rust/src/point.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'examples/07-native-type-custom-config') diff --git a/examples/07-native-type-custom-config/output/rust/src/main.rs b/examples/07-native-type-custom-config/output/rust/src/main.rs index 164fa14..0300d5a 100644 --- a/examples/07-native-type-custom-config/output/rust/src/main.rs +++ b/examples/07-native-type-custom-config/output/rust/src/main.rs @@ -1,5 +1,6 @@ mod point; +#[derive(Debug, PartialEq)] struct Point(i32, i32); #[cfg(test)] diff --git a/examples/07-native-type-custom-config/output/rust/src/point.rs b/examples/07-native-type-custom-config/output/rust/src/point.rs index b073f86..74ac8cd 100644 --- a/examples/07-native-type-custom-config/output/rust/src/point.rs +++ b/examples/07-native-type-custom-config/output/rust/src/point.rs @@ -1,6 +1,7 @@ // Generated by hobgoblin. /// A straight line from one point to another. +#[derive(Debug, PartialEq)] pub struct Line { pub start: crate::Point, pub end: crate::Point, -- cgit v1.2.3