Explorar o código

Fix Swift 5 warning

With Swift 5 the bytes initializer is deprecated. The replacement is
backwards compatible
Keith Smiley %!s(int64=6) %!d(string=hai) anos
pai
achega
20e35a06a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/CryptoSwift/Foundation/Data+Extension.swift

+ 1 - 1
Sources/CryptoSwift/Foundation/Data+Extension.swift

@@ -82,7 +82,7 @@ extension Data {
 
 extension Data {
     public init(hex: String) {
-        self.init(bytes: Array<UInt8>(hex: hex))
+        self.init(Array<UInt8>(hex: hex))
     }
 
     public var bytes: Array<UInt8> {