This commit is contained in:
Han
2025-08-14 21:58:13 +08:00
committed by GitHub
parent 63f4ab1fff
commit 360a59bd67
3 changed files with 41 additions and 8 deletions

View File

@@ -1,3 +1 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
pub mod serde;

View File

@@ -288,7 +288,7 @@ fn serialize_inputs(inputs: &Input) -> Result<Vec<u8>, bincode::Error> {
inputs.iter().try_fold(Vec::new(), |mut acc, item| {
match item {
InputItem::Object(obj) => {
bincode::serialize_into(&mut acc, obj)?;
bincode::serialize_into(&mut acc, &**obj)?;
}
InputItem::SerializedObject(bytes) | InputItem::Bytes(bytes) => acc.extend(bytes),
};