@@ -490,7 +490,7 @@ impl JsonValue {
490490 /// }
491491 /// assert_eq!(animals_with_letter_a, vec!["Cat", "Snail"]);
492492 /// ```
493- pub fn members ( & self ) -> Members {
493+ pub fn members ( & self ) -> Members < ' _ > {
494494 match * self {
495495 JsonValue :: Array ( ref vec) => vec. iter ( ) ,
496496 _ => [ ] . iter ( ) ,
@@ -499,7 +499,7 @@ impl JsonValue {
499499
500500 /// Works on `JsonValue::Array` - returns a mutable iterator over members.
501501 /// Will return an empty iterator if called on non-array types.
502- pub fn members_mut ( & mut self ) -> MembersMut {
502+ pub fn members_mut ( & mut self ) -> MembersMut < ' _ > {
503503 match * self {
504504 JsonValue :: Array ( ref mut vec) => vec. iter_mut ( ) ,
505505 _ => [ ] . iter_mut ( ) ,
@@ -529,7 +529,7 @@ impl JsonValue {
529529 /// assert_eq!(total_height, 5.12);
530530 /// assert_eq!(names_with_o, vec!["Bob", "Carlos"]);
531531 /// ```
532- pub fn entries ( & self ) -> Entries {
532+ pub fn entries ( & self ) -> Entries < ' _ > {
533533 match * self {
534534 JsonValue :: Object ( ref object) => object. iter ( ) ,
535535 _ => Entries :: empty ( ) ,
@@ -539,7 +539,7 @@ impl JsonValue {
539539 /// Works on `JsonValue::Object` - returns a mutable iterator over
540540 /// key value pairs.
541541 /// Will return an empty iterator if called on non-object types.
542- pub fn entries_mut ( & mut self ) -> EntriesMut {
542+ pub fn entries_mut ( & mut self ) -> EntriesMut < ' _ > {
543543 match * self {
544544 JsonValue :: Object ( ref mut object) => object. iter_mut ( ) ,
545545 _ => EntriesMut :: empty ( ) ,
@@ -694,7 +694,7 @@ impl IndexMut<usize> for JsonValue {
694694/// assert!(object["foo"] == "bar");
695695/// # }
696696/// ```
697- impl < ' a > Index < & ' a str > for JsonValue {
697+ impl Index < & str > for JsonValue {
698698 type Output = JsonValue ;
699699
700700 fn index ( & self , index : & str ) -> & JsonValue {
@@ -713,7 +713,7 @@ impl Index<String> for JsonValue {
713713 }
714714}
715715
716- impl < ' a > Index < & ' a String > for JsonValue {
716+ impl Index < & String > for JsonValue {
717717 type Output = JsonValue ;
718718
719719 fn index ( & self , index : & String ) -> & JsonValue {
@@ -737,7 +737,7 @@ impl<'a> Index<&'a String> for JsonValue {
737737/// assert!(object["foo"] == 42);
738738/// # }
739739/// ```
740- impl < ' a > IndexMut < & ' a str > for JsonValue {
740+ impl IndexMut < & str > for JsonValue {
741741 fn index_mut ( & mut self , index : & str ) -> & mut JsonValue {
742742 match * self {
743743 JsonValue :: Object ( ref mut object) => & mut object[ index] ,
@@ -755,7 +755,7 @@ impl IndexMut<String> for JsonValue {
755755 }
756756}
757757
758- impl < ' a > IndexMut < & ' a String > for JsonValue {
758+ impl IndexMut < & String > for JsonValue {
759759 fn index_mut ( & mut self , index : & String ) -> & mut JsonValue {
760760 self . index_mut ( index. deref ( ) )
761761 }
0 commit comments