From 287a24675a83eee31b4ad9e4bbde5984c134ec9d Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Tue, 8 Jan 2019 23:03:26 -0800 Subject: [PATCH] Fix TODO for return type We have bumped past the point of this TODO so we can make the changes. --- juniper/src/value/object.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/juniper/src/value/object.rs b/juniper/src/value/object.rs index 2a298565..c617378b 100644 --- a/juniper/src/value/object.rs +++ b/juniper/src/value/object.rs @@ -49,22 +49,14 @@ impl Object { } /// Get a iterator over all field value pairs - /// - /// This method returns a iterator over `&'a (String, Value)` - // TODO: change this to `-> impl Iterator` - // as soon as juniper bumps the minimal supported rust verion to 1.26 - pub fn iter(&self) -> FieldIter { + pub fn iter(&self) -> impl Iterator)> { FieldIter { inner: self.key_value_list.iter(), } } /// Get a iterator over all mutable field value pairs - /// - /// This method returns a iterator over `&mut 'a (String, Value)` - // TODO: change this to `-> impl Iterator` - // as soon as juniper bumps the minimal supported rust verion to 1.26 - pub fn iter_mut(&mut self) -> FieldIterMut { + pub fn iter_mut(&mut self) -> impl Iterator)> { FieldIterMut { inner: self.key_value_list.iter_mut(), }