From 516f7b60d9e0ec2acc8437bbcbb397db9d3d9940 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 27 Sep 2020 18:47:20 +0800 Subject: [PATCH] Fix no_std build. --- src/any.rs | 1 + src/module/mod.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/any.rs b/src/any.rs index 75c88683..d9dada0d 100644 --- a/src/any.rs +++ b/src/any.rs @@ -1269,6 +1269,7 @@ impl From> for Dynamic { Self(Union::FnPtr(value)) } } +#[cfg(not(feature = "no_std"))] impl From for Dynamic { #[inline(always)] fn from(value: Instant) -> Self { diff --git a/src/module/mod.rs b/src/module/mod.rs index b6511eb8..bb107ad7 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -497,8 +497,6 @@ impl Module { /// are not determined), but the implementation is in Rust. #[cfg(not(feature = "no_function"))] #[cfg(not(feature = "no_module"))] - #[cfg(not(feature = "no_std"))] - #[cfg(not(target_arch = "wasm32"))] pub(crate) fn set_raw_fn_as_scripted( &mut self, name: impl Into,