@@ -110,9 +110,8 @@ impl<'a, C: crate::HttpClient<'a>> HelixClient<'a, C> {
110
110
ClientRequestError < <C as crate :: HttpClient < ' a > >:: Error > ,
111
111
>
112
112
where
113
- for < ' y > R : Request < Response < ' y > = D > + RequestGet ,
113
+ R : Request < Response < ' static > = D > + RequestGet ,
114
114
D : for < ' b > serde:: de:: Deserialize < ' b > + for < ' b > yoke:: Yokeable < ' b , Output = D > + PartialEq ,
115
- D : ' static ,
116
115
T : TwitchToken + ?Sized ,
117
116
C : Send ,
118
117
{
@@ -131,28 +130,27 @@ impl<'a, C: crate::HttpClient<'a>> HelixClient<'a, C> {
131
130
let mut request_opt = None ;
132
131
let mut total = None ;
133
132
let mut other = None ;
134
- let resp: yoke:: Yoke < <R as Request >:: Response < ' static > , _ > =
135
- yoke:: Yoke :: try_attach_to_cart (
136
- body,
137
- |body| -> Result <
138
- <D as yoke:: Yokeable < ' _ > >:: Output ,
139
- ClientRequestError < <C as crate :: HttpClient < ' a > >:: Error > ,
140
- > {
141
- let response = http:: Response :: from_parts ( parts, body) ;
142
- let Response {
143
- data,
144
- pagination : pagination_inner,
145
- request : request_inner,
146
- total : total_inner,
147
- other : other_inner,
148
- } = <R >:: parse_response ( Some ( request) , & uri, & response) ?;
149
- pagination = pagination_inner;
150
- request_opt = request_inner;
151
- total = total_inner;
152
- other = other_inner;
153
- Ok ( data)
154
- } ,
155
- ) ?;
133
+ let resp: yoke:: Yoke < D , _ > = yoke:: Yoke :: try_attach_to_cart (
134
+ body,
135
+ |body| -> Result <
136
+ <D as yoke:: Yokeable < ' static > >:: Output ,
137
+ ClientRequestError < <C as crate :: HttpClient < ' a > >:: Error > ,
138
+ > {
139
+ let response = http:: Response :: from_parts ( parts, body) ;
140
+ let Response {
141
+ data,
142
+ pagination : pagination_inner,
143
+ request : request_inner,
144
+ total : total_inner,
145
+ other : other_inner,
146
+ } = todo ! ( ) ; //<R>::parse_response(Some(request), &uri, &response)?;
147
+ pagination = pagination_inner;
148
+ request_opt = request_inner;
149
+ total = total_inner;
150
+ other = other_inner;
151
+ Ok ( data)
152
+ } ,
153
+ ) ?;
156
154
157
155
Ok ( Response {
158
156
data : resp,
0 commit comments