File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 33
44import PackageDescription
55
6+ let swiftSettings : [ SwiftSetting ] = [
7+ . enableUpcomingFeature( " ExistentialAny " ) ,
8+ ]
9+
610let package = Package (
711 name: " SQLime " ,
812 platforms: [
@@ -18,11 +22,13 @@ let package = Package(
1822 targets: [
1923 . target(
2024 name: " SQLime " ,
21- dependencies: [ ]
25+ dependencies: [ ] ,
26+ swiftSettings: swiftSettings
2227 ) ,
2328 . testTarget(
2429 name: " SQLimeTests " ,
25- dependencies: [ " SQLime " ]
30+ dependencies: [ " SQLime " ] ,
31+ swiftSettings: swiftSettings
2632 ) ,
2733 ]
2834)
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ final class _StatementDecoder: Decoder {
4040 return KeyedDecodingContainer ( container)
4141 }
4242
43- func unkeyedContainer( ) throws -> UnkeyedDecodingContainer {
43+ func unkeyedContainer( ) throws -> any UnkeyedDecodingContainer {
4444 throw DecodingError . dataCorrupted ( codingPath: codingPath, " `unkeyedContainer()` not supported " )
4545 }
4646
47- func singleValueContainer( ) throws -> SingleValueDecodingContainer {
47+ func singleValueContainer( ) throws -> any SingleValueDecodingContainer {
4848 guard let key = codingPath. last else {
4949 throw DecodingError . dataCorrupted ( codingPath: codingPath, " key not found " )
5050 }
@@ -153,15 +153,15 @@ extension _StatementDecoder {
153153 fatalError ( )
154154 }
155155
156- func nestedUnkeyedContainer( forKey key: Key ) throws -> UnkeyedDecodingContainer {
156+ func nestedUnkeyedContainer( forKey key: Key ) throws -> any UnkeyedDecodingContainer {
157157 fatalError ( )
158158 }
159159
160- func superDecoder( ) throws -> Decoder {
160+ func superDecoder( ) throws -> any Decoder {
161161 fatalError ( )
162162 }
163163
164- func superDecoder( forKey key: Key ) throws -> Decoder {
164+ func superDecoder( forKey key: Key ) throws -> any Decoder {
165165 fatalError ( )
166166 }
167167
You can’t perform that action at this time.
0 commit comments