mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-18 00:00:12 +02:00
Freshen up buf API
This commit is contained in:
@@ -6,7 +6,7 @@ pub fn test_take_from_buf() {
|
||||
let mut buf = Take::new(Cursor::new(b"hello world".to_vec()), 5);
|
||||
let mut res = vec![];
|
||||
|
||||
buf.read_to_end(&mut res);
|
||||
buf.read_to_end(&mut res).unwrap();
|
||||
|
||||
assert_eq!(&res, b"hello");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user