@@ -39,18 +39,15 @@ public struct Status<Style: DiffableTextStyle>: Equatable {
3939 // MARK: Transformations
4040 //=------------------------------------------------------------------------=
4141
42- /// Merges member-wise inequalities.
42+ /// Merges member inequalities on a case-by-case basis.
43+ ///
44+ /// A style marked as equals(()) will not be compared or merged.
45+ ///
4346 @inlinable mutating func merge( _ other: Self ) -> Changes {
44- let changes = ( self .!= other)
45- //=--------------------------------------=
46- // Update
47- //=--------------------------------------=
48- if changes. contains ( . style) { self . style = other. style }
49- if changes. contains ( . value) { self . value = other. value }
50- if changes. contains ( . focus) { self . focus = other. focus }
51- //=--------------------------------------=
52- // Return
53- //=--------------------------------------=
47+ let changes = self .!= other
48+ if changes. contains ( . style) { self . style = other. style }
49+ if changes. contains ( . value) { self . value = other. value }
50+ if changes. contains ( . focus) { self . focus = other. focus }
5451 return changes
5552 }
5653
@@ -77,6 +74,6 @@ public struct Status<Style: DiffableTextStyle>: Equatable {
7774 @inlinable static func .!= ( lhs: Self , rhs: Self ) -> Changes { [
7875 . style( lhs. style != rhs. style) ,
7976 . value( lhs. value != rhs. value) ,
80- . focus( lhs. focus != rhs. focus) ,
81- ] }
77+ . focus( lhs. focus != rhs. focus) ]
78+ }
8279}
0 commit comments