summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-13 19:31:17 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-13 19:31:17 +0100
commit676504976d67f976cde947b11652848fd5132613 (patch)
tree5f66da914aa8c76630977fbe49f922c6df66a9d9 /tests
parent59f1294efadd2980c2eb91f861ba9c8c28ebd3ca (diff)
downloadads1x1x-async-676504976d67f976cde947b11652848fd5132613.tar.gz
ads1x1x-async-676504976d67f976cde947b11652848fd5132613.tar.xz
ads1x1x-async-676504976d67f976cde947b11652848fd5132613.zip
Make macro use specific to tests
Diffstat (limited to 'tests')
-rw-r--r--tests/mux_i2c.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mux_i2c.rs b/tests/mux_i2c.rs
index ca10673..69d7023 100644
--- a/tests/mux_i2c.rs
+++ b/tests/mux_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;