summaryrefslogtreecommitdiff
path: root/examples/11-custom-code/output/rust/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-31 13:57:06 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-31 13:57:06 +0100
commitf8c4b8f33d3da5a943bfa29a14abdb3484122083 (patch)
tree2516e74fe6a3f13199c2d407ce106db41e1ead7a /examples/11-custom-code/output/rust/src
parente5c27bcaf0e577f5b94c663f36ddc101ef1432ce (diff)
Add Clone and Copy to generated Rust types
Diffstat (limited to 'examples/11-custom-code/output/rust/src')
-rw-r--r--examples/11-custom-code/output/rust/src/gen/shapes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/11-custom-code/output/rust/src/gen/shapes.rs b/examples/11-custom-code/output/rust/src/gen/shapes.rs
index 815db2a..d1582ad 100644
--- a/examples/11-custom-code/output/rust/src/gen/shapes.rs
+++ b/examples/11-custom-code/output/rust/src/gen/shapes.rs
@@ -1,6 +1,6 @@
// Generated by hobgoblin.
-#[derive(Debug, Hash, PartialEq)]
+#[derive(Clone, Debug, Hash, PartialEq)]
pub struct Square {
pub width: ::core::primitive::i32,
}