From 40d643683541a24a61f8f41f274f95ac7548d842 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Fri, 12 Apr 2024 02:07:34 -0700 Subject: [PATCH] Fixed an issue compiling on Linux --- Sources/CodableDatastore/Indexes/Indexable.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/CodableDatastore/Indexes/Indexable.swift b/Sources/CodableDatastore/Indexes/Indexable.swift index 2dd8483..e47f773 100644 --- a/Sources/CodableDatastore/Indexes/Indexable.swift +++ b/Sources/CodableDatastore/Indexes/Indexable.swift @@ -22,6 +22,7 @@ public struct AnyIndexable { } } +#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) /// Matching implementation from https://github.com/apple/swift/pull/64899/files extension Never: Codable { public init(from decoder: any Decoder) throws { @@ -32,6 +33,7 @@ extension Never: Codable { } public func encode(to encoder: any Encoder) throws {} } +#endif /// A marker protocol for types that can be used as a ranged index. ///