Skip to content

Commit f2aa282

Browse files
committed
Switch off of String SPI (which is going away) in the legacy tests for the new PlaygroundLogger implementation
1 parent 1df2ab8 commit f2aa282

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PlaygroundLogger/PlaygroundLoggerTests/LegacyPlaygroundLoggerTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,7 @@ extension UInt64 {
894894

895895
extension String {
896896
init (rawBytes: [UInt8]) {
897-
self = rawBytes.withUnsafeBufferPointer { (storage : UnsafeBufferPointer<UInt8>) in
898-
return String._fromCodeUnitSequenceWithRepair(UTF8.self, input: storage).0
899-
}
897+
self = String(decoding: rawBytes, as: UTF8.self)
900898
}
901899

902900
init? (storage: BytesStorage) {

0 commit comments

Comments
 (0)