File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,18 +86,18 @@ External crates cannot implement Encode for pointers or Optionals, but they
86
86
As a workaround, we provide implementations for these types that return the
87
87
same encoding as references.
88
88
*/
89
- unsafe impl < T : ' static > Encode for * const T where for < ' a > & ' a T : Encode {
90
- const ENCODING : Encoding < ' static > = <& T as Encode >:: ENCODING ;
89
+ unsafe impl < T > Encode for * const T where for < ' b > & ' b T : Encode {
90
+ const ENCODING : Encoding < ' static > = <& T >:: ENCODING ;
91
91
}
92
92
93
- unsafe impl < T : ' static > Encode for * mut T where for < ' a > & ' a mut T : Encode {
93
+ unsafe impl < T > Encode for * mut T where for < ' b > & ' b mut T : Encode {
94
94
const ENCODING : Encoding < ' static > = <& mut T >:: ENCODING ;
95
95
}
96
96
97
- unsafe impl < ' a , T : ' a > Encode for Option < & ' a T > where & ' a T : Encode {
97
+ unsafe impl < ' a , T > Encode for Option < & ' a T > where for < ' b > & ' b T : Encode {
98
98
const ENCODING : Encoding < ' static > = <& T >:: ENCODING ;
99
99
}
100
100
101
- unsafe impl < ' a , T : ' a > Encode for Option < & ' a mut T > where & ' a mut T : Encode {
101
+ unsafe impl < ' a , T > Encode for Option < & ' a mut T > where for < ' b > & ' b mut T : Encode {
102
102
const ENCODING : Encoding < ' static > = <& mut T >:: ENCODING ;
103
103
}
You can’t perform that action at this time.
0 commit comments