Skip to content

Commit f8d33fb

Browse files
tgrapperongithub-actions[bot]
authored andcommitted
Run swift-format
1 parent bce9970 commit f8d33fb

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

Sources/CompressionDependency/Compressor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public struct Compressor: Sendable {
4646
/// Compresses the provided data synchronously, using the provided algorithm.
4747
public func callAsFunction(
4848
_ data: Data,
49-
using algorithm: @Sendable @autoclosure () -> Algorithm = .zlib
49+
using algorithm: @Sendable @autoclosure () -> Algorithm = .zlib
5050
) throws -> Data {
5151
try self.compress(data, algorithm())
5252
}

Sources/DependenciesAdditionsBasics/Proxies.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public struct ReadWriteBinding<Value>: Sendable {
121121
self.set = getSet.1
122122
}
123123
/// Initializes a ``ReadWriteProxy`` from a ``ProxyBindable`` value, like `LockIsolated`.
124-
public init<Bindable: ProxyBindable & Sendable>(_ bindable: Bindable) where Bindable.Value == Value {
124+
public init<Bindable: ProxyBindable & Sendable>(_ bindable: Bindable)
125+
where Bindable.Value == Value {
125126
self.init(
126127
get: {
127128
bindable.getValue()
@@ -299,7 +300,8 @@ public struct MainActorReadWriteBinding<Value>: Sendable {
299300
self.set = getSet.1
300301
}
301302

302-
public init<Bindable: ProxyBindable & Sendable>(_ bindable: Bindable) where Bindable.Value == Value {
303+
public init<Bindable: ProxyBindable & Sendable>(_ bindable: Bindable)
304+
where Bindable.Value == Value {
303305
self.init(
304306
get: {
305307
bindable.getValue()

Sources/NotificationCenterDependency/NotificationCenterDependency.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ extension NotificationCenter {
6767
@_inheritActorContext removeObserver: @escaping @Sendable (
6868
AnyObject, NSNotification.Name?, AnyObject?, StaticString, UInt
6969
) -> Void,
70-
@_inheritActorContext publisher: @escaping @Sendable (Notification.Name, AnyObject?, StaticString, UInt) ->
70+
@_inheritActorContext publisher: @escaping @Sendable (
71+
Notification.Name, AnyObject?, StaticString, UInt
72+
) ->
7173
AnyPublisher<Notification, Never>
7274
) {
7375
self._post = post

Tests/NotificationCenterDependencyTests/NotificationCenterDependencyTests.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ import Dependencies
22
@_spi(Internals) import DependenciesAdditionsBasics
33
import NotificationCenterDependency
44
import XCTest
5+
56
@MainActor
67
final class NotificationCenterDependencyTests: XCTestCase {
78
nonisolated
8-
func notificationName1() -> Notification.Name { .init("NotificationCenterDependencyTests_1") }
9+
func notificationName1() -> Notification.Name
10+
{ .init("NotificationCenterDependencyTests_1") }
911
nonisolated
10-
func notificationName2() -> Notification.Name { .init("NotificationCenterDependencyTests_2") }
12+
func notificationName2() -> Notification.Name
13+
{ .init("NotificationCenterDependencyTests_2") }
1114

1215
// TODO: Strenghten this
1316
func testNotificationCenterStream() async throws {
@@ -21,7 +24,7 @@ final class NotificationCenterDependencyTests: XCTestCase {
2124
await withTimeout { group in
2225
group.addTask {
2326
var count = 0
24-
let notifications = await MainActor.run{
27+
let notifications = await MainActor.run {
2528
UncheckedSendable(notificationCenter.notifications(named: n1))
2629
}.value
2730
for await notification in notifications {

0 commit comments

Comments
 (0)