diff options
author | Markus Reiter <me@reitermark.us> | 2024-01-19 15:09:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 15:09:19 +0100 |
commit | 5cd361340635aafe8806c82805622bc6afc4c4d7 (patch) | |
tree | e71f39a729a95020ca299925b93d0990416666b7 /tests | |
parent | 6f417d833e2a4041f32a6578332b050d79028910 (diff) | |
download | ads1x1x-async-5cd361340635aafe8806c82805622bc6afc4c4d7.tar.gz ads1x1x-async-5cd361340635aafe8806c82805622bc6afc4c4d7.tar.xz ads1x1x-async-5cd361340635aafe8806c82805622bc6afc4c4d7.zip |
Remove `I2cInterface`. (#20)
* Merge `ReadData` and `WriteData` traits.
* Remove `I2cInterface`.
* Update changelog.
* Fix links.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common/mod.rs | 11 |
1 files changed, 2 insertions, 9 deletions
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<I2cMock> - ); + impl_new_destroy!($ic, $create, $destroy, $conv, I2cTrans, I2cMock); }; } |