Fix no_function build.

This commit is contained in:
Stephen Chung
2020-11-08 10:56:33 +08:00
parent b3d318ef7f
commit 760f6c3678
3 changed files with 15 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ use crate::{
use crate::stdlib::{
borrow::Cow,
boxed::Box,
collections::{HashMap, HashSet},
collections::HashMap,
format,
hash::Hash,
iter::empty,
@@ -45,6 +45,9 @@ use crate::stdlib::{
#[cfg(not(feature = "no_function"))]
use crate::stdlib::hash::Hasher;
#[cfg(not(feature = "no_closure"))]
use crate::stdlib::collections::HashSet;
#[cfg(not(feature = "no_std"))]
#[cfg(not(feature = "no_function"))]
use crate::stdlib::collections::hash_map::DefaultHasher;