summaryrefslogtreecommitdiff
path: root/tests/namespace_test/namespace_test2_generated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/namespace_test/namespace_test2_generated.rs')
-rw-r--r--tests/namespace_test/namespace_test2_generated.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/namespace_test/namespace_test2_generated.rs b/tests/namespace_test/namespace_test2_generated.rs
index 815d9f4a..f21eeeef 100644
--- a/tests/namespace_test/namespace_test2_generated.rs
+++ b/tests/namespace_test/namespace_test2_generated.rs
@@ -247,8 +247,13 @@ impl<'a> flatbuffers::Verifiable for EnumInNestedNS {
impl flatbuffers::SimpleToVerifyInSlice for EnumInNestedNS {}
// struct StructInNestedNS, aligned to 4
#[repr(transparent)]
-#[derive(Clone, Copy, PartialEq, Default)]
+#[derive(Clone, Copy, PartialEq)]
pub struct StructInNestedNS(pub [u8; 8]);
+impl Default for StructInNestedNS {
+ fn default() -> Self {
+ Self([0; 8])
+ }
+}
impl std::fmt::Debug for StructInNestedNS {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("StructInNestedNS")