summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-08 18:56:42 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-08 18:56:42 +0100
commit4ae0064d98bddc466658ded48d9646ee163a43a0 (patch)
tree89bf2ca0bd190b2e75b36032e944ac4acaadd483 /src/lib.rs
parent2f4284b914fb187ae485918b3f64c0ff2360ddb1 (diff)
downloadads1x1x-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.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5e654c5..63c5a93 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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)]