Skip to content

Commit 6b45620

Browse files
fix: Fix some Swift 6 warnings
1 parent 793c72b commit 6b45620

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Haystack/DateTime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public struct DateTime: Val {
191191
}
192192
}
193193

194-
var calendar = Calendar(identifier: .gregorian)
194+
let calendar = Calendar(identifier: .gregorian)
195195

196196
// DateTime + Codable
197197
extension DateTime {

Sources/Haystack/Val.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension Val {
2424
}
2525
}
2626

27-
public enum ValType: String, CaseIterable {
27+
public enum ValType: String, CaseIterable, Sendable {
2828
case Bool
2929
case Coord
3030
case Date

0 commit comments

Comments
 (0)