Skip to content

Commit

Permalink
Fix @retroactive break older Swift compiler support issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Sep 17, 2024
1 parent 0cd6a03 commit 422b447
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/OpenGraph/Attribute/Attribute/OGAttribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extension OGAttribute {

// MARK: CustomStringConvertible

extension OGAttribute: @retroactive CustomStringConvertible {
extension OGAttribute: Swift.CustomStringConvertible {
@inlinable
public var description: String { "#\(rawValue)" }
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenGraph/Attribute/Weak/OGWeakAttribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension OGWeakAttribute {
}
}

extension OGWeakAttribute: @retroactive Hashable {
extension OGWeakAttribute: Swift.Hashable {
@_alwaysEmitIntoClient
public static func == (lhs: OGWeakAttribute, rhs: OGWeakAttribute) -> Bool {
lhs.raw_attribute == rhs.raw_attribute && lhs.subgraph_id == rhs.subgraph_id
Expand All @@ -53,7 +53,7 @@ extension OGWeakAttribute: @retroactive Hashable {
}
}

extension OGWeakAttribute: @retroactive CustomStringConvertible {
extension OGWeakAttribute: Swift.CustomStringConvertible {
@_alwaysEmitIntoClient
public var description: String { attribute?.description ?? "nil" }
}
2 changes: 1 addition & 1 deletion Sources/OpenGraph/Runtime/OGTypeID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public func OGTypeApplyFields2(
body: (UnsafePointer<Int8>, Int, Any.Type) -> Bool
) -> Bool

extension OGTypeID: @retroactive Hashable, @retroactive CustomStringConvertible {
extension OGTypeID: Swift.Hashable, Swift.CustomStringConvertible {
@inlinable
@inline(__always)
public init(_ type: Any.Type) {
Expand Down

0 comments on commit 422b447

Please sign in to comment.