From b7ea21392614a4238dc29e48833c4498d4a67e50 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 23 Dec 2016 23:30:27 -0500 Subject: [PATCH] Support nostd for ByteBuf from String --- serde/src/bytes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde/src/bytes.rs b/serde/src/bytes.rs index db98f2d8..988c24a5 100644 --- a/serde/src/bytes.rs +++ b/serde/src/bytes.rs @@ -84,7 +84,7 @@ mod bytebuf { use de; #[cfg(feature = "collections")] - use collections::Vec; + use collections::{String, Vec}; /// `ByteBuf` wraps a `Vec` and serializes as a byte array. #[derive(Clone, Default, Eq, Hash, PartialEq, PartialOrd, Ord)]