File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // swift-tools-version: 6.0
1+ // swift-tools-version: 6.1
22// The swift-tools-version declares the minimum version of Swift required to build this package.
33
44import PackageDescription
Original file line number Diff line number Diff line change 11![ Build] ( https://github.com/codefiesta/VimKit/actions/workflows/swift.yml/badge.svg )
22![ 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 )
44![ iOS 18.0+] ( https://img.shields.io/badge/iOS-18.0%2B-crimson.svg )
55![ visionOS 2.0+] ( https://img.shields.io/badge/visionOS-2.0%2B-magenta.svg )
66![ 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 {
177177 /// - modelType: the type of model
178178 private func warmCache ( _ modelType : any IndexedPersistentModel . Type ) {
179179 guard let table = database . tables [ modelType . modelName ] else { return }
180- modelType . warm ( table : table , cache : cache )
180+ _ = modelType . warm ( table : table , cache : cache )
181181 }
182182
183183 /// 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 {
6969 /// - table: the database table that contains the raw data
7070 /// - cache: the cache to warm
7171 /// - Returns: the cached objects.
72+ @ discardableResult
7273 static func warm ( table : Database . Table , cache : Database . ImportCache ) -> [ Self ] {
7374 cache . warm ( table )
7475 }
You can’t perform that action at this time.
0 commit comments