Write docs and remove unecessary fns and types

This commit is contained in:
Carl Lerche
2017-02-16 10:26:48 -08:00
parent 53d1c788e0
commit 0e0066e8a0
8 changed files with 377 additions and 584 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
extern crate bytes;
extern crate byteorder;
use bytes::{Buf, BufMut, ByteBuf};
use bytes::{BufMut, BytesMut};
use std::usize;
use std::fmt::Write;
@@ -49,10 +49,10 @@ fn test_put_u16() {
#[test]
fn test_clone() {
let mut buf = ByteBuf::with_capacity(100);
let mut buf = BytesMut::with_capacity(100);
buf.write_str("this is a test").unwrap();
let buf2 = buf.clone();
buf.write_str(" of our emergecy broadcast system").unwrap();
assert!(buf.bytes() != buf2.bytes());
assert!(buf != buf2);
}