@@ -51,15 +51,15 @@ 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 > ,
58
58
}
59
59
60
60
impl < T , B > Connection < T , B >
61
61
where
62
- T : Read + Write + Unpin + ' static ,
62
+ T : Read + Write + Unpin ,
63
63
B : Body + ' static ,
64
64
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
65
65
{
@@ -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 > > ,
@@ -247,7 +247,7 @@ impl<B> fmt::Debug for SendRequest<B> {
247
247
248
248
impl < T , B > Connection < T , B >
249
249
where
250
- T : Read + Write + Unpin + Send + ' static ,
250
+ T : Read + Write + Unpin + Send ,
251
251
B : Body + ' static ,
252
252
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
253
253
{
@@ -261,7 +261,7 @@ where
261
261
262
262
impl < T , B > fmt:: Debug for Connection < T , B >
263
263
where
264
- T : Read + Write + fmt:: Debug + ' static ,
264
+ T : Read + Write + fmt:: Debug ,
265
265
B : Body + ' static ,
266
266
{
267
267
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -271,7 +271,7 @@ where
271
271
272
272
impl < T , B > Future for Connection < T , B >
273
273
where
274
- T : Read + Write + Unpin + ' static ,
274
+ T : Read + Write + Unpin ,
275
275
B : Body + ' static ,
276
276
B :: Data : Send ,
277
277
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
@@ -509,7 +509,7 @@ impl Builder {
509
509
io : T ,
510
510
) -> impl Future < Output = crate :: Result < ( SendRequest < B > , Connection < T , B > ) > >
511
511
where
512
- T : Read + Write + Unpin + ' static ,
512
+ T : Read + Write + Unpin ,
513
513
B : Body + ' static ,
514
514
B :: Data : Send ,
515
515
B :: Error : Into < Box < dyn StdError + Send + Sync > > ,
0 commit comments