We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7417376 commit b75cdb4Copy full SHA for b75cdb4
Sources/DefaultCodable/Default.swift
@@ -24,6 +24,7 @@ public struct Default<Provider: DefaultValueProvider>: Codable {
24
}
25
26
extension Default: Equatable where Provider.Value: Equatable {}
27
+extension Default: Hashable where Provider.Value: Hashable {}
28
29
public extension KeyedDecodingContainer {
30
func decode<P>(_: Default<P>.Type, forKey key: Key) throws -> Default<P> {
Tests/DefaultCodableTests/DefaultTests.swift
@@ -6,7 +6,7 @@ final class DefaultTests: XCTestCase {
6
case foo, bar, baz
7
8
9
- private struct Thing: Codable, Equatable {
+ private struct Thing: Codable, Hashable {
10
var name: String
11
12
@Default<Empty> var description: String
0 commit comments