@@ -51,7 +51,7 @@ pub struct Parts<T> {
51
51
#[ must_use = "futures do nothing unless polled" ]
52
52
pub struct Connection < T , B >
53
53
where
54
- T : Read + Write + ' static ,
54
+ T : Read + Write ,
55
55
B : Body + ' static ,
56
56
{
57
57
inner : Dispatcher < T , B > ,
@@ -124,7 +124,7 @@ pub struct Builder {
124
124
/// See [`client::conn`](crate::client::conn) for more.
125
125
pub async fn handshake < T , B > ( io : T ) -> crate :: Result < ( SendRequest < B > , Connection < T , B > ) >
126
126
where
127
- T : Read + Write + Unpin + ' static ,
127
+ T : Read + Write + Unpin ,
128
128
B : Body + ' static ,
129
129
B :: Data : Send ,
130
130
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
@@ -239,7 +239,7 @@ impl<B> fmt::Debug for SendRequest<B> {
239
239
240
240
impl < T , B > Connection < T , B >
241
241
where
242
- T : Read + Write + Unpin + Send + ' static ,
242
+ T : Read + Write + Unpin + Send ,
243
243
B : Body + ' static ,
244
244
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
245
245
{
@@ -253,7 +253,7 @@ where
253
253
254
254
impl < T , B > fmt:: Debug for Connection < T , B >
255
255
where
256
- T : Read + Write + fmt:: Debug + ' static ,
256
+ T : Read + Write + fmt:: Debug ,
257
257
B : Body + ' static ,
258
258
{
259
259
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -263,7 +263,7 @@ where
263
263
264
264
impl < T , B > Future for Connection < T , B >
265
265
where
266
- T : Read + Write + Unpin + ' static ,
266
+ T : Read + Write + Unpin ,
267
267
B : Body + ' static ,
268
268
B :: Data : Send ,
269
269
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
@@ -501,7 +501,7 @@ impl Builder {
501
501
io : T ,
502
502
) -> impl Future < Output = crate :: Result < ( SendRequest < B > , Connection < T , B > ) > >
503
503
where
504
- T : Read + Write + Unpin + ' static ,
504
+ T : Read + Write + Unpin ,
505
505
B : Body + ' static ,
506
506
B :: Data : Send ,
507
507
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
0 commit comments