mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-21 00:00:12 +02:00
Get rid of BufError
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ pub fn test_initial_buf_empty() {
|
||||
assert_eq!(buf.bytes(), b"hello world");
|
||||
|
||||
let view1 = buf.slice(0, 11);
|
||||
view1.buf().copy_to(&mut dst).unwrap();
|
||||
view1.buf().copy_to(&mut dst);
|
||||
|
||||
assert_eq!(dst, b"hello world");
|
||||
assert_eq!(view1, buf.slice(0, 11));
|
||||
@@ -47,7 +47,7 @@ pub fn test_append_buf_from_pool() {
|
||||
assert_eq!(buf.bytes(), b"hello world");
|
||||
|
||||
let view1 = buf.slice(0, 11);
|
||||
view1.buf().copy_to(&mut dst).unwrap();
|
||||
view1.buf().copy_to(&mut dst);
|
||||
|
||||
assert_eq!(dst, b"hello world");
|
||||
assert_eq!(view1, buf.slice(0, 11));
|
||||
|
||||
Reference in New Issue
Block a user