@@ -44,18 +44,18 @@ extension Data: CustomDumpStringConvertible {
4444}
4545
4646#if !os(WASI)
47- extension Date : CustomDumpStringConvertible {
48- public var customDumpDescription : String {
49- " Date( \( Self . formatter. string ( from: self ) ) ) "
50- }
47+ extension Date : CustomDumpStringConvertible {
48+ public var customDumpDescription : String {
49+ " Date( \( Self . formatter. string ( from: self ) ) ) "
50+ }
5151
52- private static let formatter : DateFormatter = {
53- let formatter = DateFormatter ( )
54- formatter. dateFormat = " yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX "
55- formatter. timeZone = TimeZone ( secondsFromGMT: 0 ) !
56- return formatter
57- } ( )
58- }
52+ private static let formatter : DateFormatter = {
53+ let formatter = DateFormatter ( )
54+ formatter. dateFormat = " yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX "
55+ formatter. timeZone = TimeZone ( secondsFromGMT: 0 ) !
56+ return formatter
57+ } ( )
58+ }
5959#endif
6060
6161extension Decimal : CustomDumpStringConvertible {
@@ -170,11 +170,11 @@ extension NSMeasurement: CustomDumpRepresentable {
170170}
171171
172172#if !os(WASI)
173- extension NSNotification : CustomDumpRepresentable {
174- public var customDumpValue : Any {
175- self as Notification
173+ extension NSNotification : CustomDumpRepresentable {
174+ public var customDumpValue : Any {
175+ self as Notification
176+ }
176177 }
177- }
178178#endif
179179
180180extension NSOrderedSet : CustomDumpReflectable {
@@ -235,11 +235,11 @@ extension NSURLQueryItem: CustomDumpRepresentable {
235235}
236236
237237#if !os(WASI)
238- extension NSURLRequest : CustomDumpRepresentable {
239- public var customDumpValue : Any {
240- self as URLRequest
238+ extension NSURLRequest : CustomDumpRepresentable {
239+ public var customDumpValue : Any {
240+ self as URLRequest
241+ }
241242 }
242- }
243243#endif
244244
245245extension NSUUID : CustomDumpRepresentable {
@@ -276,46 +276,46 @@ extension URL: CustomDumpStringConvertible {
276276}
277277
278278#if !os(WASI)
279- extension URLRequest . NetworkServiceType : CustomDumpStringConvertible {
280- public var customDumpDescription : String {
281- switch self { #if canImport(FoundationNetworking)
282- case . background:
283- return " URLRequest.NetworkServiceType.background "
284- case . default:
285- return " URLRequest.NetworkServiceType.default "
286- case . networkServiceTypeCallSignaling:
287- return " URLRequest.NetworkServiceType.networkServiceTypeCallSignaling "
288- case . video:
289- return " URLRequest.NetworkServiceType.video "
290- case . voice:
291- return " URLRequest.NetworkServiceType.voice "
292- case . voip:
293- return " URLRequest.NetworkServiceType.voip "
294- #else
295- case . avStreaming:
296- return " URLRequest.NetworkServiceType.avStreaming "
297- case . background:
298- return " URLRequest.NetworkServiceType.background "
299- case . callSignaling:
300- return " URLRequest.NetworkServiceType.callSignaling "
301- case . default:
302- return " URLRequest.NetworkServiceType.default "
303- case . responsiveAV:
304- return " URLRequest.NetworkServiceType.responsiveAV "
305- case . responsiveData:
306- return " URLRequest.NetworkServiceType.responsiveData "
307- case . video:
308- return " URLRequest.NetworkServiceType.video "
309- case . voice:
310- return " URLRequest.NetworkServiceType.voice "
311- case . voip:
312- return " URLRequest.NetworkServiceType.voip "
313- @unknown default :
314- return " URLRequest.NetworkServiceType.(@unknown default, rawValue: \( self . rawValue) ) "
315- #endif
279+ extension URLRequest . NetworkServiceType : CustomDumpStringConvertible {
280+ public var customDumpDescription : String {
281+ switch self { #if canImport(FoundationNetworking)
282+ case . background:
283+ return " URLRequest.NetworkServiceType.background "
284+ case . default:
285+ return " URLRequest.NetworkServiceType.default "
286+ case . networkServiceTypeCallSignaling:
287+ return " URLRequest.NetworkServiceType.networkServiceTypeCallSignaling "
288+ case . video:
289+ return " URLRequest.NetworkServiceType.video "
290+ case . voice:
291+ return " URLRequest.NetworkServiceType.voice "
292+ case . voip:
293+ return " URLRequest.NetworkServiceType.voip "
294+ #else
295+ case . avStreaming:
296+ return " URLRequest.NetworkServiceType.avStreaming "
297+ case . background:
298+ return " URLRequest.NetworkServiceType.background "
299+ case . callSignaling:
300+ return " URLRequest.NetworkServiceType.callSignaling "
301+ case . default:
302+ return " URLRequest.NetworkServiceType.default "
303+ case . responsiveAV:
304+ return " URLRequest.NetworkServiceType.responsiveAV "
305+ case . responsiveData:
306+ return " URLRequest.NetworkServiceType.responsiveData "
307+ case . video:
308+ return " URLRequest.NetworkServiceType.video "
309+ case . voice:
310+ return " URLRequest.NetworkServiceType.voice "
311+ case . voip:
312+ return " URLRequest.NetworkServiceType.voip "
313+ @unknown default :
314+ return " URLRequest.NetworkServiceType.(@unknown default, rawValue: \( self . rawValue) ) "
315+ #endif
316+ }
316317 }
317318 }
318- }
319319#endif
320320
321321extension UUID : CustomDumpStringConvertible {
0 commit comments