diff options
author | Chih-hung Hsieh <chh@google.com> | 2020-07-14 04:53:01 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-14 04:53:01 +0000 |
commit | 192f5ef0d8170589b14b94f3bd16376782b9f827 (patch) | |
tree | a1e903569e7b07558c4eef2bcef8542201d7906c /tests/test_chain.rs | |
parent | bc446b1b6f82c1210387cfb863da504e9a944c8f (diff) | |
parent | 22f3322677ee95993cf44873b7b781bf5cba4a54 (diff) | |
download | bytes-192f5ef0d8170589b14b94f3bd16376782b9f827.tar.gz |
Merge "Upgrade rust/crates/bytes to 0.5.5" am: 9e908cd8b1 am: faa311792d am: 22f3322677
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/1360807
Change-Id: I934396854622289c0e87702d691cfff116524314
Diffstat (limited to 'tests/test_chain.rs')
-rw-r--r-- | tests/test_chain.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_chain.rs b/tests/test_chain.rs index 332571d..82de7fc 100644 --- a/tests/test_chain.rs +++ b/tests/test_chain.rs @@ -1,7 +1,8 @@ #![deny(warnings, rust_2018_idioms)] -use bytes::{Buf, BufMut, Bytes}; use bytes::buf::{BufExt, BufMutExt}; +use bytes::{Buf, BufMut, Bytes}; +#[cfg(feature = "std")] use std::io::IoSlice; #[test] @@ -42,6 +43,7 @@ fn iterating_two_bufs() { assert_eq!(res, &b"helloworld"[..]); } +#[cfg(feature = "std")] #[test] fn vectored_read() { let a = Bytes::from(&b"hello"[..]); |