aboutsummaryrefslogtreecommitdiff
path: root/tests/test_take.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_take.rs')
-rw-r--r--tests/test_take.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_take.rs b/tests/test_take.rs
index 0afb28b..a23a29e 100644
--- a/tests/test_take.rs
+++ b/tests/test_take.rs
@@ -1,6 +1,6 @@
#![warn(rust_2018_idioms)]
-use bytes::buf::{Buf, BufExt};
+use bytes::buf::Buf;
#[test]
fn long_take() {
@@ -8,5 +8,5 @@ fn long_take() {
// overrun the buffer. Regression test for #138.
let buf = b"hello world".take(100);
assert_eq!(11, buf.remaining());
- assert_eq!(b"hello world", buf.bytes());
+ assert_eq!(b"hello world", buf.chunk());
}