From 0a9652fe9c079a6bb3829d74c31a14ec7b34affe Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 8 Nov 2018 19:00:34 +0100 Subject: Allow constructor/destructor helper functions not to be used --- tests/common/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 8a4f1dd..0efbb8a 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -51,10 +51,12 @@ impl Default for Config { macro_rules! impl_new_destroy { ($ic:ident, $create:ident, $destroy:ident, $trans:ty, $iface:ty) => { + #[allow(unused)] pub fn $create(transactions: &[$trans]) -> Ads1x1x<$iface, ic::$ic, mode::OneShot> { Ads1x1x::$create(I2cMock::new(&transactions), SlaveAddr::default()) } + #[allow(unused)] pub fn $destroy(dev: Ads1x1x<$iface, ic::$ic, MODE>) { dev.$destroy().done(); } -- cgit v1.2.3-54-g00ecf