diff --git a/Sources/IdentifiedCollections/Identified/Identified.swift b/Sources/IdentifiedCollections/Identified/Identified.swift index 82123e9..d6a5b8f 100644 --- a/Sources/IdentifiedCollections/Identified/Identified.swift +++ b/Sources/IdentifiedCollections/Identified/Identified.swift @@ -53,7 +53,7 @@ public struct Identified: Identifiable { public subscript( dynamicMember keyPath: KeyPath ) -> Subject { - self.value[keyPath: keyPath] + self.value[keyPath: keyPath] } } diff --git a/Tests/IdentifiedCollectionsTests/IdentifiedArrayCollectionOperationTests.swift b/Tests/IdentifiedCollectionsTests/IdentifiedArrayCollectionOperationTests.swift index 448b675..4bd0e3c 100644 --- a/Tests/IdentifiedCollectionsTests/IdentifiedArrayCollectionOperationTests.swift +++ b/Tests/IdentifiedCollectionsTests/IdentifiedArrayCollectionOperationTests.swift @@ -50,7 +50,8 @@ private struct Item: Identifiable, Comparable, Equatable { } private protocol TestCollection: -MutableCollection, RandomAccessCollection, RangeReplaceableCollection {} + MutableCollection, RandomAccessCollection, RangeReplaceableCollection +{} extension Array: TestCollection {} extension IdentifiedArray: TestCollection where Element: Identifiable, Element.ID == ID {}