We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e8265 commit 497da57Copy full SHA for 497da57
Sources/SwiftProtobufPluginLibrary/Google_Protobuf_Edition+Extensions.swift
@@ -17,16 +17,8 @@ import SwiftProtobuf
17
18
/// The spec for editions calls out them being ordered and comparable.
19
/// https://github.com/protocolbuffers/protobuf/blob/main/docs/design/editions/edition-naming.md
20
-#if compiler(>=6)
21
extension Google_Protobuf_Edition: Comparable {
22
public static func < (lhs: Google_Protobuf_Edition, rhs: Google_Protobuf_Edition) -> Bool {
23
lhs.rawValue < rhs.rawValue
24
}
25
26
-#else
27
-extension Google_Protobuf_Edition: Comparable {
28
- public static func < (lhs: Google_Protobuf_Edition, rhs: Google_Protobuf_Edition) -> Bool {
29
- lhs.rawValue < rhs.rawValue
30
- }
31
-}
32
-#endif
0 commit comments