diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:12:10 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:12:10 +0100 |
commit | c4d53d6d4a8368013f3df4340c0178d0de279e72 (patch) | |
tree | 6e5509e175307759fc30d52cf414163c3bf5e369 /src/devices | |
parent | c1b15b3bb6e4673df7bcca8488c33efa025ec5f5 (diff) | |
download | ads1x1x-async-c4d53d6d4a8368013f3df4340c0178d0de279e72.tar.gz ads1x1x-async-c4d53d6d4a8368013f3df4340c0178d0de279e72.tar.xz ads1x1x-async-c4d53d6d4a8368013f3df4340c0178d0de279e72.zip |
Shorten import
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/ic.rs | 6 | ||||
-rw-r--r-- | src/devices/mod.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/ic.rs b/src/devices/ic.rs index 714eaba..7b30f85 100644 --- a/src/devices/ic.rs +++ b/src/devices/ic.rs @@ -1,11 +1,13 @@ /// ICs +use private; + #[derive(PartialEq)] pub enum ResolutionBits { _12, _16 } -pub trait Resolution : super::private::Sealed { +pub trait Resolution : private::Sealed { const BITS : ResolutionBits; } @@ -26,7 +28,7 @@ ic_marker!(Ads1114, _16); ic_marker!(Ads1015, _12); ic_marker!(Ads1115, _16); -pub trait Tier2Features : super::private::Sealed { } +pub trait Tier2Features : private::Sealed { } macro_rules! tier2_features { ($name:ident) => { diff --git a/src/devices/mod.rs b/src/devices/mod.rs index 3bcc3fa..c73d344 100644 --- a/src/devices/mod.rs +++ b/src/devices/mod.rs @@ -1,5 +1,3 @@ -use super::private; - #[doc(hidden)] pub mod ic; mod ads1x1x; |