Browse Source

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

This will remove a warning that is showing when compiling with swift 3.2
Antonio Pagano 7 năm trước cách đây
mục cha
commit
036edc3f85
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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