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