mirror of
https://github.com/hyperoslo/Cache.git
synced 2026-04-07 19:17:36 +00:00
Fix provate Error type
This commit is contained in:
@@ -2,11 +2,6 @@ import Foundation
|
||||
|
||||
/// A wrapper around array of `Cachable` objects that performs data decoding and encoding.
|
||||
public struct CacheArray<T: Cachable>: Cachable {
|
||||
private enum Error: Swift.Error {
|
||||
case encodingFailed
|
||||
case decodingFailed
|
||||
}
|
||||
|
||||
/// Array of elements
|
||||
public let elements: [T]
|
||||
|
||||
@@ -62,3 +57,8 @@ public struct CacheArray<T: Cachable>: Cachable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private enum Error: Swift.Error {
|
||||
case encodingFailed
|
||||
case decodingFailed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user