mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
[BasicContainers, DequeModule] Resolve warnings in 6.4
This commit is contained in:
12 files changed
+14
-14
No files matched your search
@@ -331,7 +331,7 @@ extension RigidArray {
|
||||
/// - Complexity: O(`newElements.count`)
|
||||
@_alwaysEmitIntoClient
|
||||
public mutating func append(copying items: Span<Element>) {
|
||||
unsafe items.withUnsafeBufferPointer { source in
|
||||
items.withUnsafeBufferPointer { source in
|
||||
unsafe self.append(copying: source)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -577,7 +577,7 @@ extension RigidArray {
|
||||
removing subrange: Range<Int>,
|
||||
copying newElements: Span<Element>
|
||||
) {
|
||||
unsafe newElements.withUnsafeBufferPointer { buffer in
|
||||
newElements.withUnsafeBufferPointer { buffer in
|
||||
unsafe self.replace(removing: subrange, copying: buffer)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user