File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
stdlib/private/StdlibUnicodeUnittest Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,11 @@ public struct UTFTest {
142
142
public let loc : SourceLoc
143
143
144
144
public var utf32 : [ UInt32 ] {
145
- return unicodeScalars. map { UInt32 ( $0 ) }
145
+ return unicodeScalars. map ( UInt32 . init )
146
146
}
147
147
148
148
public var utf32RepairedTail : [ UInt32 ] {
149
- return unicodeScalarsRepairedTail. map { UInt32 ( $0 ) }
149
+ return unicodeScalarsRepairedTail. map ( UInt32 . init )
150
150
}
151
151
152
152
public init (
Original file line number Diff line number Diff line change @@ -650,11 +650,11 @@ public struct UTFTest {
650
650
public let loc : SourceLoc
651
651
652
652
public var utf32 : [ UInt32 ] {
653
- return unicodeScalars. map { UInt32 ( $0 ) }
653
+ return unicodeScalars. map ( UInt32 . init )
654
654
}
655
655
656
656
public var utf32RepairedTail : [ UInt32 ] {
657
- return unicodeScalarsRepairedTail. map { UInt32 ( $0 ) }
657
+ return unicodeScalarsRepairedTail. map ( UInt32 . init )
658
658
}
659
659
660
660
public init (
You can’t perform that action at this time.
0 commit comments