aboutsummaryrefslogtreecommitdiff
path: root/tests/io_read_exact.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/io_read_exact.rs')
-rw-r--r--tests/io_read_exact.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/io_read_exact.rs b/tests/io_read_exact.rs
index 4941773..a772e34 100644
--- a/tests/io_read_exact.rs
+++ b/tests/io_read_exact.rs
@@ -1,8 +1,9 @@
-use futures::executor::block_on;
-use futures::io::AsyncReadExt;
-
+#[cfg(feature = "executor")]
#[test]
fn read_exact() {
+ use futures::executor::block_on;
+ use futures::io::AsyncReadExt;
+
let mut reader: &[u8] = &[1, 2, 3, 4, 5];
let mut out = [0u8; 3];