Cleanup
This commit is contained in:
parent
9933ed6b1f
commit
0c2768068c
@ -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());
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user