Fix no-std build.

This commit is contained in:
Stephen Chung 2022-09-07 14:37:33 +08:00
parent b0ce3ee445
commit faa81ac3fc

View File

@ -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,
};