File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -49,22 +49,14 @@ impl<S> Object<S> {
49
49
}
50
50
51
51
/// Get a iterator over all field value pairs
52
- ///
53
- /// This method returns a iterator over `&'a (String, Value)`
54
- // TODO: change this to `-> impl Iterator<Item = &(String, Value)>`
55
- // as soon as juniper bumps the minimal supported rust verion to 1.26
56
- pub fn iter ( & self ) -> FieldIter < S > {
52
+ pub fn iter ( & self ) -> impl Iterator < Item = & ( String , Value < S > ) > {
57
53
FieldIter {
58
54
inner : self . key_value_list . iter ( ) ,
59
55
}
60
56
}
61
57
62
58
/// Get a iterator over all mutable field value pairs
63
- ///
64
- /// This method returns a iterator over `&mut 'a (String, Value)`
65
- // TODO: change this to `-> impl Iterator<Item = &mut (String, Value)>`
66
- // as soon as juniper bumps the minimal supported rust verion to 1.26
67
- pub fn iter_mut ( & mut self ) -> FieldIterMut < S > {
59
+ pub fn iter_mut ( & mut self ) -> impl Iterator < Item = & mut ( String , Value < S > ) > {
68
60
FieldIterMut {
69
61
inner : self . key_value_list . iter_mut ( ) ,
70
62
}
You can’t perform that action at this time.
0 commit comments