Skip to content

Commit eebf882

Browse files
committed
post de-gyb formatting
1 parent 0c4aa60 commit eebf882

File tree

5 files changed

+132
-64
lines changed

5 files changed

+132
-64
lines changed

stdlib/public/core/Codable.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ public typealias Codable = Encodable & Decodable
5151
//===----------------------------------------------------------------------===//
5252

5353
/// A type that can be used as a key for encoding and decoding.
54-
public protocol CodingKey :
55-
CustomStringConvertible, CustomDebugStringConvertible
56-
{
54+
public protocol CodingKey: CustomStringConvertible,
55+
CustomDebugStringConvertible {
5756
/// The string to use in a named collection (e.g. a string-keyed dictionary).
5857
var stringValue: String { get }
5958

@@ -153,7 +152,9 @@ public protocol Decoder {
153152
/// - returns: A keyed decoding container view into this decoder.
154153
/// - throws: `DecodingError.typeMismatch` if the encountered stored value is
155154
/// not a keyed container.
156-
func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key>
155+
func container<Key>(
156+
keyedBy type: Key.Type
157+
) throws -> KeyedDecodingContainer<Key>
157158

158159
/// Returns the data stored in this decoder as represented in a container
159160
/// appropriate for holding values with no keys.
@@ -329,7 +330,6 @@ public protocol KeyedEncodingContainerProtocol {
329330
forKey key: Key
330331
) throws
331332

332-
333333
/// Encodes the given value for the given key if it is not `nil`.
334334
///
335335
/// - parameter value: The value to encode.
@@ -3398,7 +3398,8 @@ extension DecodingError {
33983398
/// - Returns: A new `.dataCorrupted` error with the given information.
33993399
public static func dataCorruptedError<C: KeyedDecodingContainerProtocol>(
34003400
forKey key: C.Key,
3401-
in container: C, debugDescription: String
3401+
in container: C,
3402+
debugDescription: String
34023403
) -> DecodingError {
34033404
let context = DecodingError.Context(
34043405
codingPath: container.codingPath + [key],
@@ -3440,7 +3441,8 @@ extension DecodingError {
34403441
///
34413442
/// - Returns: A new `.dataCorrupted` error with the given information.
34423443
public static func dataCorruptedError(
3443-
in container: SingleValueDecodingContainer, debugDescription: String
3444+
in container: SingleValueDecodingContainer,
3445+
debugDescription: String
34443446
) -> DecodingError {
34453447
let context = DecodingError.Context(codingPath: container.codingPath,
34463448
debugDescription: debugDescription)
@@ -5730,7 +5732,6 @@ extension KeyedDecodingContainerProtocol {
57305732
return try self.decode(UInt64.self, forKey: key)
57315733
}
57325734

5733-
57345735
public func decodeIfPresent<T: Decodable>(
57355736
_ type: T.Type,
57365737
forKey key: Key
@@ -5972,7 +5973,6 @@ extension UnkeyedDecodingContainer {
59725973
return try self.decode(UInt64.self)
59735974
}
59745975

5975-
59765976
public mutating func decodeIfPresent<T: Decodable>(
59775977
_ type: T.Type
59785978
) throws -> T? {

0 commit comments

Comments
 (0)