diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 18:56:42 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 18:56:42 +0100 |
commit | 4ae0064d98bddc466658ded48d9646ee163a43a0 (patch) | |
tree | 89bf2ca0bd190b2e75b36032e944ac4acaadd483 /src/lib.rs | |
parent | 2f4284b914fb187ae485918b3f64c0ff2360ddb1 (diff) | |
download | ads1x1x-async-4ae0064d98bddc466658ded48d9646ee163a43a0.tar.gz ads1x1x-async-4ae0064d98bddc466658ded48d9646ee163a43a0.tar.xz ads1x1x-async-4ae0064d98bddc466658ded48d9646ee163a43a0.zip |
Simplify code
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -183,13 +183,14 @@ pub use devices::ic; pub use devices::channel; mod private { + use super::{ devices::ic, interface }; pub trait Sealed {} - impl<I2C> Sealed for super::interface::I2cInterface<I2C> {} - impl<SPI, CS> Sealed for super::interface::SpiInterface<SPI, CS> {} + impl<I2C> Sealed for interface::I2cInterface<I2C> {} + impl<SPI, CS> Sealed for interface::SpiInterface<SPI, CS> {} - impl Sealed for super::devices::ic::Ads1013 {} - impl Sealed for super::devices::ic::Ads1113 {} + impl Sealed for ic::Ads1013 {} + impl Sealed for ic::Ads1113 {} } #[cfg(test)] |