Sfoglia il codice sorgente

Mark final to support Sendable

onevcat 1 anno fa
parent
commit
8d8caf2feb
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Tests/KingfisherTests/KingfisherOptionsInfoTests.swift

+ 2 - 2
Tests/KingfisherTests/KingfisherOptionsInfoTests.swift

@@ -146,13 +146,13 @@ class KingfisherOptionsInfoTests: XCTestCase {
     }
     }
 }
 }
 
 
-class TestModifier: ImageDownloadRequestModifier {
+final class TestModifier: ImageDownloadRequestModifier {
     func modified(for request: URLRequest) -> URLRequest? {
     func modified(for request: URLRequest) -> URLRequest? {
         return nil
         return nil
     }
     }
 }
 }
 
 
-class TestRedirectHandler: ImageDownloadRedirectHandler {
+final class TestRedirectHandler: ImageDownloadRedirectHandler {
     func handleHTTPRedirection(
     func handleHTTPRedirection(
         for task: Kingfisher.SessionDataTask, response: HTTPURLResponse, newRequest: URLRequest
         for task: Kingfisher.SessionDataTask, response: HTTPURLResponse, newRequest: URLRequest
     ) async -> URLRequest? {
     ) async -> URLRequest? {