Skip to content

Commit 3c51885

Browse files
stephencelisactions-user
authored andcommitted
Run swift-format
1 parent bf9ab75 commit 3c51885

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

Sources/ComposableArchitecture/SwiftUI/ActionSheet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ extension ActionSheetState: CustomDumpReflectable {
144144
children: [
145145
"title": self.title,
146146
"message": self.message as Any,
147-
"buttons": self.buttons
147+
"buttons": self.buttons,
148148
],
149149
displayStyle: .struct
150150
)

Sources/ComposableArchitecture/SwiftUI/Alert.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import SwiftUI
21
import CustomDump
2+
import SwiftUI
33

44
/// A data type that describes the state of an alert that can be shown to the user. The `Action`
55
/// generic is the type of actions that can be sent from tapping on a button in the alert.
@@ -214,7 +214,7 @@ extension AlertState: CustomDumpReflectable {
214214
"title": self.title,
215215
"message": self.message as Any,
216216
"primaryButton": self.primaryButton as Any,
217-
"secondaryButton": self.secondaryButton as Any
217+
"secondaryButton": self.secondaryButton as Any,
218218
],
219219
displayStyle: .struct
220220
)

Sources/ComposableArchitecture/SwiftUI/Binding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import SwiftUI
21
import CustomDump
2+
import SwiftUI
33

44
/// An action that describes simple mutations to some root state at a writable key path.
55
///

Sources/ComposableArchitecture/TestSupport/TestStore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
) {
368368
if expected != actual {
369369
let difference =
370-
diff(expected, actual, format: .proportional)
370+
diff(expected, actual, format: .proportional)
371371
.map { "\($0.indent(by: 4))\n\n(Expected: −, Actual: +)" }
372372
?? """
373373
Expected:
@@ -409,7 +409,7 @@
409409
let (receivedAction, state) = self.receivedActions.removeFirst()
410410
if expectedAction != receivedAction {
411411
let difference =
412-
diff(expectedAction, receivedAction, format: .proportional)
412+
diff(expectedAction, receivedAction, format: .proportional)
413413
.map { "\($0.indent(by: 4))\n\n(Expected: −, Received: +)" }
414414
?? """
415415
Expected:

Tests/ComposableArchitectureTests/DebugTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import CustomDump
21
import Combine
2+
import CustomDump
33
import XCTest
44

55
@testable import ComposableArchitecture
@@ -18,8 +18,8 @@ final class DebugTests: XCTestCase {
1818
dump = ""
1919
customDump(
2020
TextState("Hello, ")
21-
+ TextState("world").bold().italic()
22-
+ TextState("!"),
21+
+ TextState("world").bold().italic()
22+
+ TextState("!"),
2323
to: &dump
2424
)
2525
XCTAssertNoDifference(

Tests/ComposableArchitectureTests/ReducerTests.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Combine
22
import CombineSchedulers
33
import ComposableArchitecture
4+
import CustomDump
45
import XCTest
56
import os.signpost
6-
import CustomDump
77

88
final class ReducerTests: XCTestCase {
99
var cancellables: Set<AnyCancellable> = []
@@ -219,5 +219,8 @@ final class ReducerTests: XCTestCase {
219219
}
220220
}
221221

222-
enum DebugAction: Equatable { case incrWithBool(Bool), incr, noop }
222+
enum DebugAction: Equatable {
223+
case incrWithBool(Bool)
224+
case incr, noop
225+
}
223226
struct DebugState: Equatable { var count = 0 }

0 commit comments

Comments
 (0)