Full compatibility with the "ExistentialAny" upcoming feature (#8)

Discussed and requested in
https://github.com/apple/swift-openapi-generator/pull/99#issuecomment-1630636372
This commit is contained in:
Mahdi Bahrami
2023-07-13 08:35:08 +01:00
committed by GitHub
parent 32f3ae2f51
commit 98213b70f9
2 changed files with 13 additions and 4 deletions
@@ -115,7 +115,7 @@ public struct AsyncHTTPClientTransport: ClientTransport {
public var configuration: Configuration
/// Underlying request sender for the transport.
internal let requestSender: HTTPRequestSending
internal let requestSender: any HTTPRequestSending
/// Creates a new transport.
/// - Parameters:
@@ -123,7 +123,7 @@ public struct AsyncHTTPClientTransport: ClientTransport {
/// - requestSender: The underlying request sender.
internal init(
configuration: Configuration,
requestSender: HTTPRequestSending
requestSender: any HTTPRequestSending
) {
self.configuration = configuration
self.requestSender = requestSender