From 4e8a738fc772b91ce71d67b8801ffe617e95248c Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sun, 15 May 2022 03:14:17 -0700 Subject: [PATCH] Fixed Swift 5.5 support --- Sources/NordicDFU/DataConvertible.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/NordicDFU/DataConvertible.swift b/Sources/NordicDFU/DataConvertible.swift index 049de35..adf90fb 100644 --- a/Sources/NordicDFU/DataConvertible.swift +++ b/Sources/NordicDFU/DataConvertible.swift @@ -62,9 +62,7 @@ extension UInt64: UnsafeDataConvertible { } internal protocol DataContainer: RandomAccessCollection where Self.Index == Int { subscript(index: Int) -> UInt8 { get } - - subscript(range: Range) -> Slice { get } - + mutating func append(_ newElement: UInt8) mutating func append(_ pointer: UnsafePointer, count: Int)