From 4ae0064d98bddc466658ded48d9646ee163a43a0 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 8 Nov 2018 18:56:42 +0100 Subject: Simplify code --- src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/lib.rs') 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 Sealed for super::interface::I2cInterface {} - impl Sealed for super::interface::SpiInterface {} + impl Sealed for interface::I2cInterface {} + impl Sealed for interface::SpiInterface {} - 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)] -- cgit v1.2.3-54-g00ecf