Skip to content

Commit 3ef835e

Browse files
authored
Convert _MessageBase to typealias _CommonMessageConformances (#1498)
1 parent 10295a8 commit 3ef835e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/SwiftProtobuf/Message.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
///
3232
/// The actual functionality is implemented either in the generated code or in
3333
/// default implementations of the below methods and properties.
34-
public protocol Message: _MessageBase {
34+
public protocol Message: _CommonMessageConformances {
3535
/// Creates a new message with all of its fields initialized to their default
3636
/// values.
3737
init()
@@ -113,9 +113,10 @@ public protocol Message: _MessageBase {
113113
}
114114

115115
#if DEBUG
116-
public protocol _MessageBase: Sendable, CustomDebugStringConvertible {}
116+
public typealias _CommonMessageConformances =
117+
Sendable & CustomDebugStringConvertible
117118
#else
118-
public protocol _MessageBase: Sendable {}
119+
public typealias _CommonMessageConformances = Sendable
119120
#endif
120121

121122
extension Message {

0 commit comments

Comments
 (0)