Skip to content

Commit 359f359

Browse files
weissiLukasa
authored andcommitted
fix Swift 4.2 compile error (#384)
Motivation: We had a public typealias for an internal type, that's an error now in Swift 4.2. Modifications: make the typealias internal. Result: compiles in Swift 4.2
1 parent 8063cd3 commit 359f359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/NIO/PriorityQueue.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ extension PriorityQueue {
9191
@available(*, deprecated, renamed: "Element")
9292
public typealias T = Element
9393
@available(*, deprecated, renamed: "PriorityQueue.Iterator")
94-
public typealias PriorityQueueIterator<T: Comparable> = PriorityQueue<T>.Iterator
94+
typealias PriorityQueueIterator<T: Comparable> = PriorityQueue<T>.Iterator
9595
}
9696

9797
extension PriorityQueue.Iterator {
9898
@available(*, deprecated, renamed: "Element")
99-
public typealias T = Element
99+
typealias T = Element
100100
}

0 commit comments

Comments
 (0)