File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- // swift-tools-version: 6.0
1
+ // swift-tools-version: 6.1
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
Original file line number Diff line number Diff line change 1
1
![ Build] ( https://github.com/codefiesta/VimKit/actions/workflows/swift.yml/badge.svg )
2
2
![ Xcode 16.4+] ( https://img.shields.io/badge/Xcode-16.4%2B-gold.svg )
3
- ![ Swift 6.0 +] ( https://img.shields.io/badge/Swift-6.0 %2B-tomato.svg )
3
+ ![ Swift 6.1 +] ( https://img.shields.io/badge/Swift-6.1 %2B-tomato.svg )
4
4
![ iOS 18.0+] ( https://img.shields.io/badge/iOS-18.0%2B-crimson.svg )
5
5
![ visionOS 2.0+] ( https://img.shields.io/badge/visionOS-2.0%2B-magenta.svg )
6
6
![ macOS 15.0+] ( https://img.shields.io/badge/macOS-15.0%2B-skyblue.svg )
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ extension Database {
177
177
/// - modelType: the type of model
178
178
private func warmCache( _ modelType: any IndexedPersistentModel . Type ) {
179
179
guard let table = database. tables [ modelType. modelName] else { return }
180
- modelType. warm ( table: table, cache: cache)
180
+ _ = modelType. warm ( table: table, cache: cache)
181
181
}
182
182
183
183
/// Imports models of the specified type into the model container.
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ extension IndexedPersistentModel {
69
69
/// - table: the database table that contains the raw data
70
70
/// - cache: the cache to warm
71
71
/// - Returns: the cached objects.
72
+ @discardableResult
72
73
static func warm( table: Database . Table , cache: Database . ImportCache ) -> [ Self ] {
73
74
cache. warm ( table)
74
75
}
You can’t perform that action at this time.
0 commit comments