Fix TODO for return type
We have bumped past the point of this TODO so we can make the changes.
This commit is contained in:
parent
6562440105
commit
287a24675a
1 changed files with 2 additions and 10 deletions
|
@ -49,22 +49,14 @@ impl<S> Object<S> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a iterator over all field value pairs
|
/// Get a iterator over all field value pairs
|
||||||
///
|
pub fn iter(&self) -> impl Iterator<Item = &(String, Value<S>)> {
|
||||||
/// This method returns a iterator over `&'a (String, Value)`
|
|
||||||
// TODO: change this to `-> impl Iterator<Item = &(String, Value)>`
|
|
||||||
// as soon as juniper bumps the minimal supported rust verion to 1.26
|
|
||||||
pub fn iter(&self) -> FieldIter<S> {
|
|
||||||
FieldIter {
|
FieldIter {
|
||||||
inner: self.key_value_list.iter(),
|
inner: self.key_value_list.iter(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a iterator over all mutable field value pairs
|
/// Get a iterator over all mutable field value pairs
|
||||||
///
|
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut (String, Value<S>)> {
|
||||||
/// This method returns a iterator over `&mut 'a (String, Value)`
|
|
||||||
// TODO: change this to `-> impl Iterator<Item = &mut (String, Value)>`
|
|
||||||
// as soon as juniper bumps the minimal supported rust verion to 1.26
|
|
||||||
pub fn iter_mut(&mut self) -> FieldIterMut<S> {
|
|
||||||
FieldIterMut {
|
FieldIterMut {
|
||||||
inner: self.key_value_list.iter_mut(),
|
inner: self.key_value_list.iter_mut(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue