aboutsummaryrefslogtreecommitdiff
path: root/tests/test_iter.rs
diff options
context:
space:
mode:
authorGravatar YetAnotherMinion <yam@thinkalexandria.com> 2018-06-01 18:05:11 -0400
committerGravatar Sean McArthur <sean@seanmonstar.com> 2019-06-06 16:59:44 -0700
commitd8134903de1be93227ce376e1fb640ac2acfa8c1 (patch)
tree2e1839a967b1909d557a95c681aae0247769bd2b /tests/test_iter.rs
parent654a11c84cc1bf14130acb290cdc6111f3a1daf3 (diff)
downloadbytes-d8134903de1be93227ce376e1fb640ac2acfa8c1.tar.gz
bytes-d8134903de1be93227ce376e1fb640ac2acfa8c1.tar.zst
bytes-d8134903de1be93227ce376e1fb640ac2acfa8c1.zip
feat: remove impl IntoBuf for Cursor<Self>, impl Buf for Bytes, BytesMut, refactor iterators
Diffstat (limited to 'tests/test_iter.rs')
-rw-r--r--tests/test_iter.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_iter.rs b/tests/test_iter.rs
index c16dbf6..2d2f495 100644
--- a/tests/test_iter.rs
+++ b/tests/test_iter.rs
@@ -1,10 +1,10 @@
extern crate bytes;
-use bytes::{Buf, IntoBuf, Bytes};
+use bytes::{Bytes};
#[test]
fn iter_len() {
- let buf = Bytes::from(&b"hello world"[..]).into_buf();
+ let buf = Bytes::from_static(b"hello world");
let iter = buf.iter();
assert_eq!(iter.size_hint(), (11, Some(11)));
@@ -14,7 +14,7 @@ fn iter_len() {
#[test]
fn empty_iter_len() {
- let buf = Bytes::from(&b""[..]).into_buf();
+ let buf = Bytes::from_static(b"");
let iter = buf.iter();
assert_eq!(iter.size_hint(), (0, Some(0)));