summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-13 19:24:48 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-13 19:24:48 +0100
commit998047fa397e4b28a199baaba32f2f190f0689f3 (patch)
tree751836ac4b9becab1da4bfd2885a405d483d5961 /tests
parentc8e0935bb6c8a9202411c97da6882fa45d93a5e8 (diff)
downloadads1x1x-async-998047fa397e4b28a199baaba32f2f190f0689f3.tar.gz
ads1x1x-async-998047fa397e4b28a199baaba32f2f190f0689f3.tar.xz
ads1x1x-async-998047fa397e4b28a199baaba32f2f190f0689f3.zip
Make macro use specific to tests
Diffstat (limited to 'tests')
-rw-r--r--tests/tier1_i2c.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tier1_i2c.rs b/tests/tier1_i2c.rs
index 15e5514..b3168f9 100644
--- a/tests/tier1_i2c.rs
+++ b/tests/tier1_i2c.rs
@@ -1,4 +1,4 @@
-#[macro_use(block)]
+#[cfg_attr(test, macro_use(block))]
extern crate nb;
extern crate embedded_hal;
extern crate embedded_hal_mock as hal;