Ver Fonte

Moves .characters.count to use string .count (#536)

This will remove a warning that is showing when compiling with swift 3.2
Antonio Pagano há 7 anos atrás
pai
commit
036edc3f85
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Sources/CryptoSwift/CSArrayType+Extensions.swift

+ 1 - 1
Sources/CryptoSwift/CSArrayType+Extensions.swift

@@ -30,7 +30,7 @@ public extension CSArrayType where Iterator.Element == UInt8 {
     public func toHexString() -> String {
         return self.lazy.reduce("") {
             var s = String($1, radix: 16)
-            if s.characters.count == 1 {
+            if s.count == 1 {
                 s = "0" + s
             }
             return $0 + s