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,