Fix no-std.

This commit is contained in:
Stephen Chung 2022-09-14 13:45:20 +08:00
parent b256b3ecc7
commit 0280aa82ba

View File

@ -1,5 +1,8 @@
use crate::func::{hashing::get_hasher, StraightHashMap}; use crate::func::{hashing::get_hasher, StraightHashMap};
use crate::ImmutableString; use crate::ImmutableString;
#[cfg(feature = "no_std")]
use hashbrown::hash_map::Entry;
#[cfg(not(feature = "no_std"))]
use std::collections::hash_map::Entry; use std::collections::hash_map::Entry;
#[cfg(feature = "no_std")] #[cfg(feature = "no_std")]
use std::prelude::v1::*; use std::prelude::v1::*;