Skip to content

Commit 31f8eac

Browse files
committed
Add Equatable conformance for RuleContext
1 parent 732ce45 commit 31f8eac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/OpenGraph/Attribute/Rule/AnyRuleContext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public import OpenGraph_SPI
99

1010
@frozen
11-
public struct AnyRuleContext {
11+
public struct AnyRuleContext: Equatable {
1212
public var attribute: AnyAttribute
1313

1414
public init(attribute: AnyAttribute) {

Sources/OpenGraph/Attribute/Rule/RuleContext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public import OpenGraph_SPI
99

1010
@frozen
11-
public struct RuleContext<Value> {
11+
public struct RuleContext<Value>: Equatable {
1212
public var attribute: Attribute<Value>
1313

1414
public init(attribute: Attribute<Value>) {

0 commit comments

Comments
 (0)