Procházet zdrojové kódy

Address compiler warning

Marcin Krzyzanowski před 2 roky
rodič
revize
c80bcc0fa7
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Sources/CryptoSwift/BatchedCollection.swift

+ 2 - 2
Sources/CryptoSwift/BatchedCollection.swift

@@ -20,12 +20,12 @@ struct BatchedCollectionIndex<Base: Collection> {
 
 extension BatchedCollectionIndex: Comparable {
   @usableFromInline
-  static func == <Base>(lhs: BatchedCollectionIndex<Base>, rhs: BatchedCollectionIndex<Base>) -> Bool {
+  static func == <BaseCollection>(lhs: BatchedCollectionIndex<BaseCollection>, rhs: BatchedCollectionIndex<BaseCollection>) -> Bool {
     lhs.range.lowerBound == rhs.range.lowerBound
   }
 
   @usableFromInline
-  static func < <Base>(lhs: BatchedCollectionIndex<Base>, rhs: BatchedCollectionIndex<Base>) -> Bool {
+  static func < <BaseCollection>(lhs: BatchedCollectionIndex<BaseCollection>, rhs: BatchedCollectionIndex<BaseCollection>) -> Bool {
     lhs.range.lowerBound < rhs.range.lowerBound
   }
 }