Skip to content

Commit aa7389c

Browse files
authored
Merge pull request #1735 from ahoppen/frozen-messagekind
Mark `MessageDecodingError.MessageKind` as `@frozen`
2 parents 87db1bf + 2e61d33 commit aa7389c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LanguageServerProtocol/Error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public struct MessageDecodingError: Error, Hashable {
137137
/// If it was possible to recover the request id, it is stored here. This can be used e.g. to reply with a `ResponseError` to invalid requests.
138138
public var id: RequestID?
139139

140-
public enum MessageKind: Sendable {
140+
@frozen public enum MessageKind: Sendable {
141141
case request
142142
case response
143143
case notification

0 commit comments

Comments
 (0)