Skip to content

Commit 75d7e54

Browse files
authored
Swift Tools 6.1 (#111)
1 parent edca983 commit 75d7e54

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

44
import PackageDescription

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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)

Sources/VimKit/Database+Importer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

Sources/VimKit/Database+Models.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)