From f8c4b8f33d3da5a943bfa29a14abdb3484122083 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 31 Jul 2026 13:57:06 +0100 Subject: Add Clone and Copy to generated Rust types --- examples/09-native-type-custom-config/output/rust/src/main.rs | 2 +- examples/09-native-type-custom-config/output/rust/src/point.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/09-native-type-custom-config') diff --git a/examples/09-native-type-custom-config/output/rust/src/main.rs b/examples/09-native-type-custom-config/output/rust/src/main.rs index 10dc437..fa127e8 100644 --- a/examples/09-native-type-custom-config/output/rust/src/main.rs +++ b/examples/09-native-type-custom-config/output/rust/src/main.rs @@ -1,6 +1,6 @@ mod point; -#[derive(Debug, Hash, PartialEq)] +#[derive(Clone, Debug, Hash, PartialEq)] struct Point(i32, i32); #[cfg(test)] diff --git a/examples/09-native-type-custom-config/output/rust/src/point.rs b/examples/09-native-type-custom-config/output/rust/src/point.rs index 6ab4330..f25a76f 100644 --- a/examples/09-native-type-custom-config/output/rust/src/point.rs +++ b/examples/09-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, Hash, PartialEq)] +#[derive(Clone, Debug, Hash, PartialEq)] pub struct Line { pub start: crate::Point, pub end: crate::Point, -- cgit v1.2.3