Skip to content

Commit d88a5c8

Browse files
committed
Minor tweaks
1 parent 00c82ef commit d88a5c8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/Defaults/Defaults+iCloud.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Manages `Defaults.Keys` between the locale and remote storage.
204204
Depending on the storage, `Defaults.Keys` will be represented in different forms due to storage limitations of the remote storage. The remote storage imposes a limitation of 1024 keys. Therefore, we combine the recorded timestamp and data into a single key. Unlike remote storage, local storage does not have this limitation. Therefore, we can create a separate key (with `defaultsSyncKey` suffix) for the timestamp record.
205205
*/
206206
final class iCloudSynchronizer {
207-
init(remoteStorage: any DefaultsKeyValueStore) {
207+
init(remoteStorage: some DefaultsKeyValueStore) {
208208
self.remoteStorage = remoteStorage
209209
registerNotifications()
210210
remoteStorage.synchronize()

Sources/Defaults/Defaults.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ extension Defaults {
300300

301301
```swift
302302
Task {
303-
for await (foo, bar) in Defaults.updates([.foo, .bar]) {
303+
for await (foo, bar) in Defaults.updates(.foo, .bar) {
304304
print("Values changed:", foo, bar)
305305
}
306306
}

Sources/Defaults/Utilities.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ extension Collection {
166166
}
167167

168168
extension Equatable {
169-
func isEqual(_ rhs: any Equatable) -> Bool {
169+
func isEqual(_ rhs: some Equatable) -> Bool {
170170
guard
171171
let rhs = rhs as? Self,
172172
rhs == self

0 commit comments

Comments
 (0)