fixup and line width changes

This commit is contained in:
Simon Gardling
2023-03-08 13:11:01 -05:00
parent d820be537e
commit b421159f81
3 changed files with 13 additions and 19 deletions

View File

@@ -193,16 +193,13 @@ impl MathApp {
fn decompress_data() -> crate::data::TotalData {
let mut data = Vec::new();
let _ = unsafe {
ruzstd::StreamingDecoder::new(
&mut const {
include_bytes!(concat!(env!("OUT_DIR"), "/compressed_data")).as_slice()
},
)
.unwrap_unchecked()
.read_to_end(&mut data)
.unwrap_unchecked()
};
let _ = ruzstd::StreamingDecoder::new(
&mut const { include_bytes!(concat!(env!("OUT_DIR"), "/compressed_data")).as_slice() },
)
.expect("unable to decode compressed data")
.read_to_end(&mut data)
.expect("unable to read compressed data");
#[cfg(target = "wasm32")]
{
debug_assert!(!data.is_empty());
@@ -224,7 +221,7 @@ impl MathApp {
.expect("failed to set local storage cache");
}
unsafe { bincode::deserialize(data.as_slice()).unwrap_unchecked() }
bincode::deserialize(data.as_slice()).expect("unable to deserialize bincode")
}
#[cfg(target = "wasm32")]