buf: stream and iter helpers (#1011)

This commit is contained in:
Carl Lerche
2019-03-29 12:26:13 -07:00
committed by GitHub
parent cb91dd274a
commit 824b7b6759
10 changed files with 179 additions and 3 deletions
+1
View File
@@ -14,6 +14,7 @@ use std::io::Cursor;
macro_rules! assert_buf_eq {
($actual:expr, $expect:expr) => {{
use bytes::Buf;
match $actual {
Ok(Ready(Some(val))) => {
assert_eq!(val.remaining(), val.bytes().len());