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(), }