Rewrite another std::string::String to alloc.

This commit is contained in:
Dan Gohman
2019-10-02 11:13:33 -07:00
parent a111ba8d11
commit 277d981041

View File

@@ -6,7 +6,7 @@ use crate::packed_option::PackedOption;
use core::fmt; use core::fmt;
use core::marker::PhantomData; use core::marker::PhantomData;
#[cfg(test)] #[cfg(test)]
use std::string::String; use alloc::string::String;
/// Tag type defining forest types for a map. /// Tag type defining forest types for a map.
struct MapTypes<K, V>(PhantomData<(K, V)>); struct MapTypes<K, V>(PhantomData<(K, V)>);