瀏覽代碼

Address compiler warning

Marcin Krzyzanowski 2 年之前
父節點
當前提交
c80bcc0fa7
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
   }
 }