Skip to content

Commit

Permalink
tests: use concrete type for helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 20, 2024
1 parent 5669885 commit 515822c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,7 @@ mod tests {
.with_no_client_auth();
}

async fn oneshot<S, Req>(mut service: S, req: Req) -> Result<S::Response, S::Error>
where
S: Service<Req>,
{
async fn oneshot<S: Service<Uri>>(mut service: S, req: Uri) -> Result<S::Response, S::Error> {
poll_fn(|cx| service.poll_ready(cx)).await?;
service.call(req).await
}
Expand Down

0 comments on commit 515822c

Please sign in to comment.