Skip to content

Commit 44f92dc

Browse files
Updated code formatting
1 parent 6b89b5f commit 44f92dc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Sources/CodableDatastore/Persistence/Disk Persistence/DiskPersistence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ extension DiskPersistence {
273273
@_disfavoredOverload
274274
func withStoreInfo<T: Sendable>(
275275
accessor: @Sendable (_ storeInfo: StoreInfo) async throws -> T
276-
) async throws -> T where AccessMode == ReadOnly {
276+
) async throws -> T {
277277
try await withoutActuallyEscaping(accessor) { escapingClosure in
278278
try await updateStoreInfo(accessor: escapingClosure).value
279279
}

Sources/CodableDatastore/Persistence/Disk Persistence/Snapshot/Snapshot.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,10 @@ private enum SnapshotTaskLocals {
320320
// MARK: - Datastore Management
321321
extension Snapshot {
322322
/// Load the datastore for the given key.
323-
func loadDatastore(for key: DatastoreKey, from iteration: SnapshotIteration) -> (DiskPersistence<AccessMode>.Datastore, DatastoreRootIdentifier?) {
323+
func loadDatastore(
324+
for key: DatastoreKey,
325+
from iteration: SnapshotIteration
326+
) -> (DiskPersistence<AccessMode>.Datastore, DatastoreRootIdentifier?) {
324327
let datastoreInfo = if let info = iteration.dataStores[key] {
325328
(id: info.id, root: info.root)
326329
} else {

0 commit comments

Comments
 (0)