summaryrefslogtreecommitdiff
path: root/examples/07-native-type-custom-config
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-25 19:09:59 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-25 19:09:59 +0100
commit26ab534795dcced8ae6e7b4898b50748b73c930e (patch)
treeabff77bb1a44ed24480350728f8a1046cf3662b2 /examples/07-native-type-custom-config
parent85d6843940295d4121fbf4313d5381ca9381f365 (diff)
Derive Hash for generated Rust types
Diffstat (limited to 'examples/07-native-type-custom-config')
-rw-r--r--examples/07-native-type-custom-config/output/rust/src/main.rs2
-rw-r--r--examples/07-native-type-custom-config/output/rust/src/point.rs2
2 files changed, 2 insertions, 2 deletions
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 0300d5a..10dc437 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,6 +1,6 @@
mod point;
-#[derive(Debug, PartialEq)]
+#[derive(Debug, Hash, 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 74ac8cd..6ab4330 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,7 +1,7 @@
// Generated by hobgoblin.
/// A straight line from one point to another.
-#[derive(Debug, PartialEq)]
+#[derive(Debug, Hash, PartialEq)]
pub struct Line {
pub start: crate::Point,
pub end: crate::Point,