Skip to content

Commit 2f30d89

Browse files
Fixed an issue compiling on Linux
1 parent b2d5220 commit 2f30d89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/CodableDatastore/Indexes/Indexable.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public struct AnyIndexable {
2222
}
2323
}
2424

25+
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
2526
/// Matching implementation from https://github.com/apple/swift/pull/64899/files
2627
extension Never: Codable {
2728
public init(from decoder: any Decoder) throws {
@@ -32,6 +33,7 @@ extension Never: Codable {
3233
}
3334
public func encode(to encoder: any Encoder) throws {}
3435
}
36+
#endif
3537

3638
/// A marker protocol for types that can be used as a ranged index.
3739
///

0 commit comments

Comments
 (0)