Skip to content

Commit 6ae998b

Browse files
authored
Merge pull request #829 from ikesyo/runloopmode-operator-static-func
2 parents 6ac732f + f39868d commit 6ae998b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Foundation/NSRunLoop.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public struct RunLoopMode : RawRepresentable, Equatable, Hashable, Comparable {
3333
public var hashValue: Int {
3434
return rawValue.hashValue
3535
}
36-
}
3736

38-
public func ==(lhs: RunLoopMode, rhs: RunLoopMode) -> Bool {
39-
return lhs.rawValue == rhs.rawValue
40-
}
37+
public static func ==(_ lhs: RunLoopMode, _ rhs: RunLoopMode) -> Bool {
38+
return lhs.rawValue == rhs.rawValue
39+
}
4140

42-
public func <(lhs: RunLoopMode, rhs: RunLoopMode) -> Bool {
43-
return lhs.rawValue < rhs.rawValue
41+
public static func <(_ lhs: RunLoopMode, _ rhs: RunLoopMode) -> Bool {
42+
return lhs.rawValue < rhs.rawValue
43+
}
4444
}
4545

4646

0 commit comments

Comments
 (0)