Skip to content

Commit 515822c

Browse files
committed
tests: use concrete type for helper function
1 parent 5669885 commit 515822c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/connector.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,7 @@ mod tests {
284284
.with_no_client_auth();
285285
}
286286

287-
async fn oneshot<S, Req>(mut service: S, req: Req) -> Result<S::Response, S::Error>
288-
where
289-
S: Service<Req>,
290-
{
287+
async fn oneshot<S: Service<Uri>>(mut service: S, req: Uri) -> Result<S::Response, S::Error> {
291288
poll_fn(|cx| service.poll_ready(cx)).await?;
292289
service.call(req).await
293290
}

0 commit comments

Comments
 (0)