From fce3d8546bd619964ec5dd1594cd93e744a99521 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 11 Nov 2018 17:32:52 +0100 Subject: Implement value conversions over type parameter --- src/devices/features/tier1.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/devices/features/tier1.rs') diff --git a/src/devices/features/tier1.rs b/src/devices/features/tier1.rs index 4bbf7d1..30e900e 100644 --- a/src/devices/features/tier1.rs +++ b/src/devices/features/tier1.rs @@ -1,11 +1,10 @@ //! Common functions -use { Ads1x1x, DataRate, Error, Register, BitFlags, interface, ic }; +use { Ads1x1x, DataRate, Error, Register, BitFlags, interface }; -impl Ads1x1x +impl Ads1x1x where - DI: interface::WriteData, - IC: ic::Resolution + DI: interface::WriteData { /// Set data rate pub fn set_data_rate(&mut self, rate: DataRate) -> Result<(), Error> { -- cgit v1.2.3-54-g00ecf