summaryrefslogtreecommitdiff
path: root/examples/11-transient-0/output/rust/src/gen/data
diff options
context:
space:
mode:
Diffstat (limited to 'examples/11-transient-0/output/rust/src/gen/data')
-rw-r--r--examples/11-transient-0/output/rust/src/gen/data/transient_0.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs b/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs
index 12f69e8..52ae7e1 100644
--- a/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs
+++ b/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs
@@ -223,11 +223,11 @@ pub fn decode_struct_with_sum(reader: &mut impl std::io::Read) -> ::std::io::Res
}
pub fn encode_struct_with_shared(value: &crate::data::StructWithShared, writer: &mut impl std::io::Write) -> ::std::io::Result::<()> {
- todo!();
+ crate::data::transient_0::encode_struct_with_int_32((&value.inner).as_ref(), writer)?;
::std::io::Result::Ok(())
}
pub fn decode_struct_with_shared(reader: &mut impl std::io::Read) -> ::std::io::Result::<crate::data::StructWithShared> {
- let inner = todo!();
+ let inner = ::std::sync::Arc::new(crate::data::transient_0::decode_struct_with_int_32(reader)?);
std::io::Result::Ok(crate::data::StructWithShared { inner: inner })
}