summaryrefslogtreecommitdiffstats
path: root/tests/tier1_i2c.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tier1_i2c.rs')
-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;