Skip to content

Commit 0013bdd

Browse files
authoredMar 15, 2024··
feat: relax connection IO trait bounds (#3595)
1 parent 4d0c184 commit 0013bdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/server/conn/http1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl<I, B, S> Future for Connection<I, S>
205205
where
206206
S: HttpService<IncomingBody, ResBody = B>,
207207
S::Error: Into<Box<dyn StdError + Send + Sync>>,
208-
I: Read + Write + Unpin + 'static,
208+
I: Read + Write + Unpin,
209209
B: Body + 'static,
210210
B::Error: Into<Box<dyn StdError + Send + Sync>>,
211211
{

‎src/server/conn/http2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<I, B, S, E> Future for Connection<I, S, E>
8484
where
8585
S: HttpService<IncomingBody, ResBody = B>,
8686
S::Error: Into<Box<dyn StdError + Send + Sync>>,
87-
I: Read + Write + Unpin + 'static,
87+
I: Read + Write + Unpin,
8888
B: Body + 'static,
8989
B::Error: Into<Box<dyn StdError + Send + Sync>>,
9090
E: Http2ServerConnExec<S::Future, B>,

0 commit comments

Comments
 (0)
Please sign in to comment.