Skip to content

Commit 642e6aa

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 2ed7c33 commit 642e6aa

File tree

4 files changed

+1060
-1060
lines changed

4 files changed

+1060
-1060
lines changed

Package.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// swift-tools-version: 5.9
22

33
import CompilerPluginSupport
4+
import Foundation
45
import PackageDescription
56

67
let package = Package(
@@ -51,8 +52,6 @@ let package = Package(
5152
)
5253
#endif
5354

54-
import Foundation
55-
5655
if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
5756
package.dependencies.append(
5857
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0")
@@ -65,7 +64,7 @@ if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
6564
.product(
6665
name: "MacroTesting",
6766
package: "swift-macro-testing"
68-
)
67+
),
6968
]
7069
)
7170
)

[email protected]

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// swift-tools-version: 6.0
22

33
import CompilerPluginSupport
4+
import Foundation
45
import PackageDescription
56

67
let package = Package(
@@ -52,8 +53,6 @@ let package = Package(
5253
)
5354
#endif
5455

55-
import Foundation
56-
5756
if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
5857
package.dependencies.append(
5958
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0")
@@ -66,7 +65,7 @@ if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
6665
.product(
6766
name: "MacroTesting",
6867
package: "swift-macro-testing"
69-
)
68+
),
7069
]
7170
)
7271
)

Sources/CasePaths/EnumReflection.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ func extractHelp<Root, Value>(
7878
return { root in
7979
let rootTag = metadata.tag(of: root)
8080

81-
if case let (cachedTag?, (isIndirect: isIndirect, associatedValueType: associatedValueType)?) = cache.withLock({
82-
($0.tag, $0.strategy)
83-
}) {
81+
if case let (cachedTag?, (isIndirect: isIndirect, associatedValueType: associatedValueType)?) =
82+
cache.withLock({
83+
($0.tag, $0.strategy)
84+
})
85+
{
8486
guard rootTag == cachedTag else { return nil }
8587
let value =
8688
EnumMetadata

0 commit comments

Comments
 (0)