diff options
| author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 19:00:34 +0100 | 
|---|---|---|
| committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 19:00:34 +0100 | 
| commit | 0a9652fe9c079a6bb3829d74c31a14ec7b34affe (patch) | |
| tree | 43d3cf81cb2590e6e8118878da51c43b22852c5d /tests/common | |
| parent | 937a28cb6bca352df47c7ab5fb69c24794cb9f94 (diff) | |
| download | ads1x1x-async-0a9652fe9c079a6bb3829d74c31a14ec7b34affe.tar.gz ads1x1x-async-0a9652fe9c079a6bb3829d74c31a14ec7b34affe.tar.xz ads1x1x-async-0a9652fe9c079a6bb3829d74c31a14ec7b34affe.zip | |
Allow constructor/destructor helper functions not to be used
Diffstat (limited to 'tests/common')
| -rw-r--r-- | tests/common/mod.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| 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<MODE>(dev: Ads1x1x<$iface, ic::$ic, MODE>) {              dev.$destroy().done();          } | 
