diff --git a/adana-script-core/src/primitive.rs b/adana-script-core/src/primitive.rs index 95f1813..ea4f25c 100644 --- a/adana-script-core/src/primitive.rs +++ b/adana-script-core/src/primitive.rs @@ -1,6 +1,10 @@ use anyhow::Result; +use serde::{Deserialize, Serialize}; + +#[cfg(not(target_arch = "wasm32"))] +use std::any::Any; + use std::{ - any::Any, cmp::Ordering, collections::BTreeMap, fmt::Display, @@ -8,8 +12,6 @@ use std::{ sync::{Arc, RwLock}, }; -use serde::{Deserialize, Serialize}; - use super::{constants::NULL, Value}; const MAX_U32_AS_I128: i128 = u32::MAX as i128; @@ -143,7 +145,6 @@ pub enum Primitive { #[derive(Debug, Clone)] pub struct LibData { #[cfg(not(target_arch = "wasm32"))] - #[allow(dead_code)] pub data: Arc>, }