From 3779cf1770e1be03d60623d965f5e56897fbfa43 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 11 Nov 2018 17:42:15 +0100 Subject: Avoid unnecessary type --- src/devices/mode/continuous.rs | 2 +- src/devices/mode/oneshot.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices') diff --git a/src/devices/mode/continuous.rs b/src/devices/mode/continuous.rs index a06df60..e90b1ae 100644 --- a/src/devices/mode/continuous.rs +++ b/src/devices/mode/continuous.rs @@ -15,7 +15,7 @@ where iface: self.iface, config: self.config, a_conversion_was_started: self.a_conversion_was_started, - converter: self.converter, + _conv: PhantomData, _ic: PhantomData, _mode: PhantomData }) diff --git a/src/devices/mode/oneshot.rs b/src/devices/mode/oneshot.rs index e8aa533..de7e11e 100644 --- a/src/devices/mode/oneshot.rs +++ b/src/devices/mode/oneshot.rs @@ -18,7 +18,7 @@ where iface: self.iface, config: self.config, a_conversion_was_started: self.a_conversion_was_started, - converter: self.converter, + _conv: PhantomData, _ic: PhantomData, _mode: PhantomData }) -- cgit v1.2.3-54-g00ecf