From 0280aa82ba2d895917374615d42f20de69ced7aa Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 14 Sep 2022 13:45:20 +0800 Subject: [PATCH] Fix no-std. --- src/types/interner.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/types/interner.rs b/src/types/interner.rs index 7f7cf1b3..2af5363d 100644 --- a/src/types/interner.rs +++ b/src/types/interner.rs @@ -1,5 +1,8 @@ use crate::func::{hashing::get_hasher, StraightHashMap}; use crate::ImmutableString; +#[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::*;