Skip to content

Commit 3e16c75

Browse files
committed
Cleanup: _Void. Fixed: added Style.EqualsVoid typealias until Void is made equatable.
1 parent a2a044a commit 3e16c75

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Sources/DiffableTextKit/Support/Void.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@
1111
// MARK: * Void
1212
//*============================================================================*
1313

14-
public struct _Void: Hashable, Comparable {
14+
public struct _Void: Hashable {
1515

1616
//=------------------------------------------------------------------------=
1717
// MARK: Initializers
1818
//=------------------------------------------------------------------------=
1919

2020
@inlinable @inline(__always) public init() { }
21-
22-
//=------------------------------------------------------------------------=
23-
// MARK: Comparisons
24-
//=------------------------------------------------------------------------=
25-
26-
@inlinable @inline(__always) public static func < (lhs: Self, rhs: Self) -> Bool { false }
2721
}

Sources/DiffableTextStylesXWrapper/Equals.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ extension DiffableTextStyle {
5656
// MARK: Aliases
5757
//=------------------------------------------------------------------------=
5858

59+
public typealias EqualsVoid = EqualsTextStyle<Self, _Void>
5960
public typealias Equals<Proxy: Equatable> = EqualsTextStyle<Self, Proxy>
6061

6162
//=------------------------------------------------------------------------=
@@ -64,7 +65,7 @@ extension DiffableTextStyle {
6465

6566
/// Binds the style's comparison result to the proxy value.
6667
@inlinable @inline(__always)
67-
public func equals(_ proxy: Void) -> Equals<_Void> {
68+
public func equals(_ proxy: Void) -> EqualsVoid {
6869
Equals(self, proxy: _Void())
6970
}
7071

0 commit comments

Comments
 (0)