From ae21ccea0c7749cc3d3ad85aed3619fae21b96c9 Mon Sep 17 00:00:00 2001 From: stephencelis Date: Tue, 23 Jul 2024 16:50:27 +0000 Subject: [PATCH] Run swift-format --- Sources/IdentifiedCollections/Identified/Identified.swift | 2 +- .../IdentifiedArrayCollectionOperationTests.swift | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {}