mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-24 04:37:50 +00:00
Apply formatting
This commit is contained in:
1 parent
89ef2cf73d
commit
3f73125a0d
28 files changed
+198
-184
No files matched your search
+6
-8
@@ -26,11 +26,11 @@ struct StructuredFieldUnkeyedEncodingContainer {
|
||||
|
||||
extension StructuredFieldUnkeyedEncodingContainer: UnkeyedEncodingContainer {
|
||||
var codingPath: [CodingKey] {
|
||||
return self.encoder.codingPath
|
||||
self.encoder.codingPath
|
||||
}
|
||||
|
||||
var count: Int {
|
||||
return self.encoder.count
|
||||
self.encoder.count
|
||||
}
|
||||
|
||||
func encodeNil() throws {
|
||||
@@ -93,21 +93,19 @@ extension StructuredFieldUnkeyedEncodingContainer: UnkeyedEncodingContainer {
|
||||
try self.encoder.append(value)
|
||||
}
|
||||
|
||||
func encode<T>(_ value: T) throws where T : Encodable {
|
||||
func encode<T>(_ value: T) throws where T: Encodable {
|
||||
try self.encoder.append(value)
|
||||
}
|
||||
|
||||
mutating func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type) -> KeyedEncodingContainer<NestedKey> where NestedKey : CodingKey {
|
||||
mutating func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type) -> KeyedEncodingContainer<NestedKey> where NestedKey: CodingKey {
|
||||
return self.encoder.container(keyedBy: keyType)
|
||||
}
|
||||
|
||||
mutating func nestedUnkeyedContainer() -> UnkeyedEncodingContainer {
|
||||
return self.encoder.unkeyedContainer()
|
||||
self.encoder.unkeyedContainer()
|
||||
}
|
||||
|
||||
mutating func superEncoder() -> Encoder {
|
||||
return self.encoder
|
||||
self.encoder
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user