This commit is contained in:
James Dyson 2019-01-21 13:34:59 +00:00
parent 9933ed6b1f
commit 0c2768068c
2 changed files with 2 additions and 3 deletions

View File

@ -4,14 +4,14 @@ use std::collections::BTreeMap;
use sehn::*;
fn print_and_clear(s: BaseSerializer<DefaultConfig, &mut GenericWriter<Vec<u8>>>) {
fn print_and_clear(s: BaseSerializer<DefaultConfig, &mut GenericBufferWriter<Vec<u8>>>) {
let out = s.into_inner();
println!("{}", out.as_str());
out.clear();
}
fn main() {
let mut w = GenericWriter::from(Vec::new());
let mut w = GenericBufferWriter::from(Vec::new());
///////////////////////////////////////////////////////////////////////////

View File

@ -114,7 +114,6 @@ impl GenericReadBuffer for Vec<u8> {
self.as_slice()
}
#[cfg(any(feature = "std", feature = "alloc"))]
fn to_vec(self) -> Vec<u8> {
self
}