Skip to content

Commit 6165862

Browse files
DougGregorktopley-apple
authored andcommitted
Explicit specific element type of the DispatchData iterator. NFC
Signed-off-by: Daniel A. Steffen <[email protected]>
1 parent b01f38b commit 6165862

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

PATCHES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,4 @@ github commits starting with 29bdc2f from
367367
[295f676] APPLIED rdar://35017478
368368
[48196a2] APPLIED rdar://35017478
369369
[a28fc2b] APPLIED rdar://35017478
370+
[791ce5d] APPLIED rdar://35017478

src/swift/Data.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ public struct DispatchData : RandomAccessCollection {
318318
}
319319

320320
public struct DispatchDataIterator : IteratorProtocol, Sequence {
321+
public typealias Element = UInt8
321322

322323
/// Create an iterator over the given DispatchData
323324
public init(_data: DispatchData) {

0 commit comments

Comments
 (0)