From 31f8eac5a15afa78bef6fc082e906a03c0b47a99 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 18 May 2025 22:30:52 +0800 Subject: [PATCH] Add Equatable conformance for RuleContext --- Sources/OpenGraph/Attribute/Rule/AnyRuleContext.swift | 2 +- Sources/OpenGraph/Attribute/Rule/RuleContext.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/OpenGraph/Attribute/Rule/AnyRuleContext.swift b/Sources/OpenGraph/Attribute/Rule/AnyRuleContext.swift index 28063401..89139182 100644 --- a/Sources/OpenGraph/Attribute/Rule/AnyRuleContext.swift +++ b/Sources/OpenGraph/Attribute/Rule/AnyRuleContext.swift @@ -8,7 +8,7 @@ public import OpenGraph_SPI @frozen -public struct AnyRuleContext { +public struct AnyRuleContext: Equatable { public var attribute: AnyAttribute public init(attribute: AnyAttribute) { diff --git a/Sources/OpenGraph/Attribute/Rule/RuleContext.swift b/Sources/OpenGraph/Attribute/Rule/RuleContext.swift index 3c37dac1..cee5d6a9 100644 --- a/Sources/OpenGraph/Attribute/Rule/RuleContext.swift +++ b/Sources/OpenGraph/Attribute/Rule/RuleContext.swift @@ -8,7 +8,7 @@ public import OpenGraph_SPI @frozen -public struct RuleContext { +public struct RuleContext: Equatable { public var attribute: Attribute public init(attribute: Attribute) {