diff options
author | Haibo Huang <hhb@google.com> | 2021-01-11 19:30:56 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2021-01-11 19:30:56 -0800 |
commit | 49f37ac424d7df1f8ee1989d8f3b5ceb6b6a9ea0 (patch) | |
tree | 9fee875946571b5e3156284b964bf3617ced0ca1 /tests/test_take.rs | |
parent | 2b95745e709cfb52a81074e4882d0a2cbaaea2ed (diff) | |
download | bytes-49f37ac424d7df1f8ee1989d8f3b5ceb6b6a9ea0.tar.gz |
Upgrade rust/crates/bytes to 1.0.1
Test: make
Change-Id: Ie9751d0251a3844858395badc8546303dcddeb24
Diffstat (limited to 'tests/test_take.rs')
-rw-r--r-- | tests/test_take.rs | 4 |
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()); } |