Skip to content

Commit b9dfce8

Browse files
authored
Resolve a few Data warnings (#1583)
1 parent 4bf6ba8 commit b9dfce8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/FoundationEssentials/Data/DataProtocol.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ extension Data : MutableDataProtocol {
239239
public var regions: CollectionOfOne<Data> {
240240
return CollectionOfOne(self)
241241
}
242-
242+
}
243+
244+
extension Data {
243245
/// Copy the contents of the data to a pointer.
244246
///
245247
/// - parameter pointer: A pointer to the buffer you wish to copy the bytes into.

Sources/FoundationEssentials/Data/Representations/Data+LargeSlice.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ extension Data {
159159
@inlinable // This is @inlinable as reasonably small.
160160
mutating func append(contentsOf buffer: UnsafeRawBufferPointer) {
161161
ensureUniqueReference()
162-
let upperbound = storage.length + storage._offset
163162
storage.replaceBytes(
164163
in: (
165164
location: range.upperBound,

0 commit comments

Comments
 (0)