Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove no-longer-needed @preconcurrencys #83

Merged
merged 10 commits into from
Dec 1, 2023
4 changes: 2 additions & 2 deletions Sources/OpenAPIRuntime/Conversion/Converter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
//
//===----------------------------------------------------------------------===//
#if canImport(Darwin)
import Foundation
import class Foundation.JSONEncoder
#else
@preconcurrency import class Foundation.JSONEncoder
@preconcurrency import class Foundation.JSONDecoder
#endif
czechboy0 marked this conversation as resolved.
Show resolved Hide resolved
import class Foundation.JSONDecoder

/// Converter between generated and HTTP currency types.
@_spi(Generated) public struct Converter: Sendable {
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenAPIRuntime/Errors/ClientError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

import HTTPTypes
#if canImport(Darwin)
import Foundation
import struct Foundation.URL
#else
@preconcurrency import struct Foundation.URL
@preconcurrency import protocol Foundation.LocalizedError
#endif
import protocol Foundation.LocalizedError

/// An error thrown by a client performing an OpenAPI operation.
///
Expand Down
4 changes: 0 additions & 4 deletions Sources/OpenAPIRuntime/Interface/ClientTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
//===----------------------------------------------------------------------===//

import HTTPTypes
#if canImport(Darwin)
import struct Foundation.URL
#else
@preconcurrency import struct Foundation.URL
#endif

/// A type that performs HTTP operations.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenAPIRuntime/Interface/UniversalClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
import HTTPTypes
#if canImport(Darwin)
import Foundation
import struct Foundation.URL
#else
@preconcurrency import struct Foundation.URL
#endif
Expand Down
4 changes: 1 addition & 3 deletions Sources/OpenAPIRuntime/Interface/UniversalServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@
//===----------------------------------------------------------------------===//

import HTTPTypes

#if canImport(Darwin)
import struct Foundation.URL
import struct Foundation.URLComponents
#else
@preconcurrency import struct Foundation.URL
@preconcurrency import struct Foundation.URLComponents
#endif
import struct Foundation.URLComponents

/// OpenAPI document-agnostic HTTP server used by OpenAPI document-specific,
/// generated servers to perform request deserialization, middleware and handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@_spi(Generated) @testable import OpenAPIRuntime
#if os(Linux)
@preconcurrency import Foundation
#if canImport(Darwin) || swift(>=5.9.1)
import struct Foundation.Date
#else
@preconcurrency import struct Foundation.Date
#endif
@_spi(Generated) @testable import OpenAPIRuntime

final class Test_URICodingRoundtrip: Test_Runtime {

Expand Down