Skip to content

Commit 5e4a09d

Browse files
committed
fix: okay fine, bindMemory it is
Signed-off-by: Skyler Ross <[email protected]>
1 parent f28e9ff commit 5e4a09d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sdk/swift/Sources/Hedera/Data+Extensions.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ extension Data {
9393
extension Data {
9494
internal func withUnsafeTypedBytes<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R {
9595
try self.withUnsafeBytes { pointer in
96-
#if swift(>=5.7)
97-
try body(pointer.assumingMemoryBound(to: UInt8.self))
98-
#else
9996
try body(pointer.bindMemory(to: UInt8.self))
100-
#endif
10197
}
10298
}
10399
}

0 commit comments

Comments
 (0)