Support nostd for ByteBuf from String

This commit is contained in:
David Tolnay 2016-12-23 23:30:27 -05:00
parent 871fb5adee
commit b7ea213926
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -84,7 +84,7 @@ mod bytebuf {
use de; use de;
#[cfg(feature = "collections")] #[cfg(feature = "collections")]
use collections::Vec; use collections::{String, Vec};
/// `ByteBuf` wraps a `Vec<u8>` and serializes as a byte array. /// `ByteBuf` wraps a `Vec<u8>` and serializes as a byte array.
#[derive(Clone, Default, Eq, Hash, PartialEq, PartialOrd, Ord)] #[derive(Clone, Default, Eq, Hash, PartialEq, PartialOrd, Ord)]