From 90dc3329d1973fda691e357cf4523d5c7c67fa1d Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期二, 11 三月 2025 12:23:53 +0800 Subject: [PATCH] fix bug --- Pods/Alamofire/Source/Core/URLConvertible+URLRequestConvertible.swift | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Pods/Alamofire/Source/Core/URLConvertible+URLRequestConvertible.swift b/Pods/Alamofire/Source/Core/URLConvertible+URLRequestConvertible.swift index 4f3e6ec..de62531 100644 --- a/Pods/Alamofire/Source/Core/URLConvertible+URLRequestConvertible.swift +++ b/Pods/Alamofire/Source/Core/URLConvertible+URLRequestConvertible.swift @@ -26,7 +26,7 @@ /// Types adopting the `URLConvertible` protocol can be used to construct `URL`s, which can then be used to construct /// `URLRequest`s. -public protocol URLConvertible { +public protocol URLConvertible: Sendable { /// Returns a `URL` from the conforming instance or throws. /// /// - Returns: The `URL` created from the instance. @@ -66,7 +66,7 @@ // MARK: - /// Types adopting the `URLRequestConvertible` protocol can be used to safely construct `URLRequest`s. -public protocol URLRequestConvertible { +public protocol URLRequestConvertible: Sendable { /// Returns a `URLRequest` or throws if an `Error` was encountered. /// /// - Returns: A `URLRequest`. @@ -94,7 +94,7 @@ /// - method: The `HTTPMethod`. /// - headers: The `HTTPHeaders`, `nil` by default. /// - Throws: Any error thrown while converting the `URLConvertible` to a `URL`. - public init(url: URLConvertible, method: HTTPMethod, headers: HTTPHeaders? = nil) throws { + public init(url: any URLConvertible, method: HTTPMethod, headers: HTTPHeaders? = nil) throws { let url = try url.asURL() self.init(url: url) -- Gitblit v1.7.1