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/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/DictionaryExtensions.swift | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/DictionaryExtensions.swift b/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/DictionaryExtensions.swift index fd4846e..15be18b 100644 --- a/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/DictionaryExtensions.swift +++ b/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/DictionaryExtensions.swift @@ -37,7 +37,7 @@ /// dict.keys.contains("key2") -> false /// /// - Parameter keys: keys to be removed. - mutating func removeAll<S: Sequence>(keys: S) where S.Element == Key { + mutating func removeAll(keys: some Sequence<Key>) { keys.forEach { removeValue(forKey: $0) } } @@ -263,7 +263,7 @@ /// - lhs: dictionary. /// - keys: array with the keys to be removed. /// - Returns: a new dictionary with keys removed. - static func - <S: Sequence>(lhs: [Key: Value], keys: S) -> [Key: Value] where S.Element == Key { + static func - (lhs: [Key: Value], keys: some Sequence<Key>) -> [Key: Value] { var result = lhs result.removeAll(keys: keys) return result @@ -280,7 +280,7 @@ /// - Parameters: /// - lhs: dictionary. /// - keys: array with the keys to be removed. - static func -= <S: Sequence>(lhs: inout [Key: Value], keys: S) where S.Element == Key { + static func -= (lhs: inout [Key: Value], keys: some Sequence<Key>) { lhs.removeAll(keys: keys) } } -- Gitblit v1.7.1