Skip to content

Commit b6db31d

Browse files
committed
Remove mutating
1 parent 291e929 commit b6db31d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/HTTPTypes/HTTPParsedFields.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct HTTPParsedFields {
100100
}
101101

102102
var request: HTTPRequest {
103-
mutating get throws {
103+
get throws {
104104
guard let method = self.method else {
105105
throw ParsingError.requestWithoutMethod
106106
}
@@ -120,7 +120,7 @@ struct HTTPParsedFields {
120120
}
121121

122122
var response: HTTPResponse {
123-
mutating get throws {
123+
get throws {
124124
guard let statusString = self.status?._storage else {
125125
throw ParsingError.responseWithoutStatus
126126
}
@@ -136,7 +136,7 @@ struct HTTPParsedFields {
136136
}
137137

138138
var trailerFields: HTTPFields {
139-
mutating get throws {
139+
get throws {
140140
if self.method != nil || self.scheme != nil || self.authority != nil || self.path != nil || self.extendedConnectProtocol != nil || self.status != nil {
141141
throw ParsingError.responseWithRequestPseudo
142142
}

0 commit comments

Comments
 (0)