Skip to content

Commit 18c9774

Browse files
authored
Fix Swift 6.x warnings (#93)
Fixes #92
1 parent 1adaee7 commit 18c9774

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/swift.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ name: Swift
88

99
jobs:
1010
build:
11-
runs-on: macos-13
11+
runs-on: macos-14
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: xcode-select
15-
run: sudo xcode-select -s /Applications/Xcode_15.0.app
15+
run: sudo xcode-select -s /Applications/Xcode_16.2.app
1616
- name: Build
1717
run: swift build -Xswiftc -warnings-as-errors
1818
- name: Test

Sources/RemindersLibrary/EKReminder+Encodable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import EventKit
22

3-
extension EKReminder: Encodable {
3+
extension EKReminder: @retroactive Encodable {
44
private enum EncodingKeys: String, CodingKey {
55
case externalId
66
case lastModified

Sources/RemindersLibrary/NaturalLanguage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private func components(from string: String) -> DateComponents? {
4444
}
4545
}
4646

47-
extension DateComponents: ExpressibleByArgument {
47+
extension DateComponents: @retroactive ExpressibleByArgument {
4848
public init?(argument: String) {
4949
if let components = components(from: argument) {
5050
self = components

0 commit comments

Comments
 (0)