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/RangeReplaceableCollectionExtensions.swift | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/RangeReplaceableCollectionExtensions.swift b/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/RangeReplaceableCollectionExtensions.swift index 06ce1b6..8ac32bd 100644 --- a/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/RangeReplaceableCollectionExtensions.swift +++ b/Pods/SwifterSwift/Sources/SwifterSwift/SwiftStdlib/RangeReplaceableCollectionExtensions.swift @@ -131,7 +131,7 @@ /// SwifterSwift: Remove all duplicate elements using KeyPath to compare. /// /// - Parameter path: Key path to compare, the value must be Equatable. - mutating func removeDuplicates<E: Equatable>(keyPath path: KeyPath<Element, E>) { + mutating func removeDuplicates(keyPath path: KeyPath<Element, some Equatable>) { var items = [Element]() removeAll { element -> Bool in guard items.contains(where: { $0[keyPath: path] == element[keyPath: path] }) else { @@ -187,7 +187,7 @@ - Parameter newElement: The optional element to append to the array */ mutating func appendIfNonNil(_ newElement: Element?) { - guard let newElement = newElement else { return } + guard let newElement else { return } append(newElement) } @@ -196,7 +196,7 @@ - Parameter newElements: The optional sequence to append to the array */ mutating func appendIfNonNil<S>(contentsOf newElements: S?) where Element == S.Element, S: Sequence { - guard let newElements = newElements else { return } + guard let newElements else { return } append(contentsOf: newElements) } } -- Gitblit v1.7.1