From 5cd361340635aafe8806c82805622bc6afc4c4d7 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 19 Jan 2024 15:09:19 +0100 Subject: Remove `I2cInterface`. (#20) * Merge `ReadData` and `WriteData` traits. * Remove `I2cInterface`. * Update changelog. * Fix links. --- tests/common/mod.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'tests/common/mod.rs') diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 429479c..ffeb916 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1,4 +1,4 @@ -use ads1x1x::{ic, interface, mode, Ads1x1x, SlaveAddr}; +use ads1x1x::{ic, mode, Ads1x1x, SlaveAddr}; use embedded_hal_mock::eh1::i2c::{Mock as I2cMock, Transaction as I2cTrans}; #[allow(unused)] @@ -82,14 +82,7 @@ macro_rules! impl_new_destroy { macro_rules! impl_new_destroy_i2c { ($ic:ident, $create:ident, $destroy:ident, $conv:ty) => { - impl_new_destroy!( - $ic, - $create, - $destroy, - $conv, - I2cTrans, - interface::I2cInterface - ); + impl_new_destroy!($ic, $create, $destroy, $conv, I2cTrans, I2cMock); }; } -- cgit v1.2.3-54-g00ecf