mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
[test] Fix strict memory safety warnings
This commit is contained in:
1 file changed
+3
-3
@@ -182,11 +182,11 @@ class HashedContainersFuzzTests: CollectionTestCase {
|
||||
}
|
||||
|
||||
var consumed: [Int] = []
|
||||
set._consumeAll { buffer in
|
||||
unsafe set._consumeAll { buffer in
|
||||
for i in buffer.indices {
|
||||
consumed.append(buffer[i].payload.value)
|
||||
unsafe consumed.append(buffer[i].payload.value)
|
||||
}
|
||||
buffer.deinitialize()
|
||||
unsafe buffer.deinitialize()
|
||||
}
|
||||
expectEqualElements(consumed.sorted(), model.sorted())
|
||||
expectEqual(set.count, 0)
|
||||
|
||||
Reference in new issue
Block a user