Make serde Shape compatible with bincode

This commit is contained in:
Dominik Werder
2022-11-23 15:10:00 +01:00
parent 694ec7ea98
commit 8eedf53f39
5 changed files with 246 additions and 140 deletions

View File

@@ -1,3 +1,4 @@
use crate::frame::bincode_from_slice;
use crate::numops::NumOps;
use crate::streams::{Collectable, Collector, ToJsonBytes, ToJsonResult};
use crate::ts_offs_from_abs;
@@ -208,7 +209,7 @@ where
}
fn from_buf(buf: &[u8]) -> Result<Self, Error> {
let dec = rmp_serde::from_slice(&buf)?;
let dec = bincode_from_slice(buf)?;
Ok(dec)
}
}