Skip to content

Commit

Permalink
Fixed an issue compiling on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Apr 12, 2024
1 parent fe80499 commit 40d6436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/CodableDatastore/Indexes/Indexable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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.
///
Expand Down

0 comments on commit 40d6436

Please sign in to comment.