From faa81ac3fcf0e582bcb6adda0fc4a84e1437549a Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 7 Sep 2022 14:37:33 +0800 Subject: [PATCH] Fix no-std build. --- src/func/call.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/func/call.rs b/src/func/call.rs index a98e2038..dc76eb4d 100644 --- a/src/func/call.rs +++ b/src/func/call.rs @@ -15,10 +15,13 @@ use crate::{ Scope, ERR, }; #[cfg(feature = "no_std")] +use hashbrown::hash_map::Entry; +#[cfg(not(feature = "no_std"))] +use std::collections::hash_map::Entry; +#[cfg(feature = "no_std")] use std::prelude::v1::*; use std::{ any::{type_name, TypeId}, - collections::hash_map::Entry, convert::TryFrom, mem, };