Skip to content

Commit 960e638

Browse files
committed
Use UnsafeRawBufferPointer to address a deprecation warning
1 parent f94810e commit 960e638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Task.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private final class Pipe {
235235

236236
signal.observe(Signal.Observer(value: { data in
237237
let dispatchData = data.withUnsafeBytes { (bytes: UnsafePointer<UInt8>) -> DispatchData in
238-
let buffer = UnsafeBufferPointer(start: bytes, count: data.count)
238+
let buffer = UnsafeRawBufferPointer(start: bytes, count: data.count)
239239
return DispatchData(bytes: buffer)
240240
}
241241

0 commit comments

Comments
 (0)