fix build

This commit is contained in:
Simon Gardling
2023-08-30 09:20:10 -04:00
parent 3d0d3ef7a3
commit 0800b94c9f
4 changed files with 36 additions and 38 deletions

View File

@@ -25,7 +25,6 @@ pub use crate::{
function_entry::{FunctionEntry, Riemann},
math_app::AppSettings,
misc::{
// decimal_round,
hashed_storage_create,
hashed_storage_read,
newtons_method,
@@ -46,7 +45,7 @@ cfg_if::cfg_if! {
static ALLOCATOR: LockedAllocator<FreeListAllocator> = LockedAllocator::new(FreeListAllocator::new());
use eframe::WebRunner;
use tracing::metadata::LevelFilter;
// use tracing::metadata::LevelFilter;
#[derive(Clone)]
#[wasm_bindgen]
pub struct WebHandle {

View File

@@ -157,7 +157,7 @@ impl MathApp {
assume(!cached_data.is_empty());
}
if commit == const { unsafe { std::mem::transmute::<&str, crate::misc::HashBytes>(build::SHORT_COMMIT) } } {
if commit == unsafe { std::mem::transmute::<&str, crate::misc::HashBytes>(build::SHORT_COMMIT) } {
tracing::info!("Reading decompression cache. Bytes: {}", cached_data.len());
return Some(cached_data.to_vec());
} else {
@@ -182,7 +182,7 @@ impl MathApp {
assume(!func_data.is_empty());
}
if commit == const { unsafe { std::mem::transmute::<&str, &[u8]>(build::SHORT_COMMIT) } } {
if commit == unsafe { std::mem::transmute::<&str, &[u8]>(build::SHORT_COMMIT) } {
tracing::info!("Reading previous function data");
let function_manager: FunctionManager = bincode::deserialize(&func_data).ok()?;
return Some(function_manager);