From 998047fa397e4b28a199baaba32f2f190f0689f3 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Tue, 13 Nov 2018 19:24:48 +0100 Subject: Make macro use specific to tests --- tests/tier1_i2c.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf