mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Mark retroactive conformances appropriately. (#2569)
Motivation: In nightly Swift, we now need to mark retroactive conformances when they are intentional. These conformances are safe for us, so we can safely suppress the warnings. Modifications: - Mark NIOFoundationCompat retroactive conformances. Result: Nightly builds work again
This commit is contained in:
1 parent
1c20573514
commit
86d05fb79f
1 file changed
+9
-3
@@ -375,9 +375,17 @@ extension ByteBufferAllocator {
|
||||
}
|
||||
|
||||
// MARK: - Conformances
|
||||
#if compiler(>=5.11)
|
||||
extension ByteBufferView: @retroactive ContiguousBytes {}
|
||||
extension ByteBufferView: @retroactive DataProtocol {}
|
||||
extension ByteBufferView: @retroactive MutableDataProtocol {}
|
||||
#else
|
||||
extension ByteBufferView: ContiguousBytes {}
|
||||
extension ByteBufferView: DataProtocol {}
|
||||
extension ByteBufferView: MutableDataProtocol {}
|
||||
#endif
|
||||
|
||||
extension ByteBufferView: DataProtocol {
|
||||
extension ByteBufferView {
|
||||
public typealias Regions = CollectionOfOne<ByteBufferView>
|
||||
|
||||
public var regions: CollectionOfOne<ByteBufferView> {
|
||||
@@ -385,8 +393,6 @@ extension ByteBufferView: DataProtocol {
|
||||
}
|
||||
}
|
||||
|
||||
extension ByteBufferView: MutableDataProtocol {}
|
||||
|
||||
// MARK: - Data
|
||||
extension Data {
|
||||
|
||||
|
||||
Reference in new issue
Block a user