From 2a148112d4511d556793f43781649240b285c19b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 21 Jan 2017 10:17:48 -0800 Subject: [PATCH] Fix Box use on no_std --- serde/src/de/value.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/serde/src/de/value.rs b/serde/src/de/value.rs index 14955a55..dd3dfa7e 100644 --- a/serde/src/de/value.rs +++ b/serde/src/de/value.rs @@ -28,6 +28,10 @@ use collections::{ }; #[cfg(all(feature = "collections", not(feature = "std")))] use collections::borrow::Cow; +#[cfg(all(feature = "collections", not(feature = "std")))] +use collections::boxed::Box; +#[cfg(all(feature = "collections", not(feature = "std")))] +use collections::string::ToString; #[cfg(all(feature = "unstable", feature = "collections"))] use collections::borrow::ToOwned;