Skip to content

Commit 3b1b340

Browse files
committed
Work around another way?
1 parent 3788e2e commit 3b1b340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Overlays/_Testing_Foundation/Attachments/Test.Attachable+Encodable&NSSecureCoding.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ public import Foundation
1616
extension Test.Attachable where Self: Encodable & NSSecureCoding {
1717
@_documentation(visibility: private)
1818
public func withUnsafeBufferPointer<R>(for attachment: borrowing Test.Attachment, _ body: (UnsafeRawBufferPointer) throws -> R) throws -> R {
19-
func open(_ value: some Encodable & Test.Attachable) throws -> R {
19+
func open(_ value: some Encodable & Test.Attachable, for attachment: borrowing Test.Attachment, _ body: (UnsafeRawBufferPointer) throws -> R) throws -> R {
2020
return try value.withUnsafeBufferPointer(for: attachment, body)
2121
}
22-
return try open(self)
22+
return try open(self, for: attachment, body)
2323
}
2424
}
2525
#endif

0 commit comments

Comments
 (0)