From 9cf7b9dc4f7a5cb7e72701eedfafa57ea5e99764 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 1 Oct 2025 14:39:43 +0000 Subject: [PATCH] Fixed some issues in the DocCMiddleware type in the library target that were encountered while compiling to Swift 6.0 in SPI. (#5) This PR addresses the issues encountered by the library while [compiling for Swift 6.0](https://swiftpackageindex.com/builds/D20FBEE6-7581-42B7-B78C-9E7D91184A49). Reviewed-on: https://repo.rock-n-code.com/rock-n-code/hummingbird-docc/pulls/5 Co-authored-by: Javier Cicchelli Co-committed-by: Javier Cicchelli --- .../HummingbirdDocC/Public/Middlewares/DocCMiddleware.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/HummingbirdDocC/Public/Middlewares/DocCMiddleware.swift b/Sources/HummingbirdDocC/Public/Middlewares/DocCMiddleware.swift index 67712da..8d3f79b 100644 --- a/Sources/HummingbirdDocC/Public/Middlewares/DocCMiddleware.swift +++ b/Sources/HummingbirdDocC/Public/Middlewares/DocCMiddleware.swift @@ -40,7 +40,6 @@ import struct Logging.Logger /// 15. *Redirects the URI path `//index/` to the resource on `/.doccarchive/index/`* /// 16. *Redirects the URI path `//js/` to the resource on `/.doccarchive/js/`* /// 17. *Redirects the URI path `//videos/` to the resource on `/.doccarchive/videos/`* -/// public struct DocCMiddleware< Context: RequestContext, FileSystemProvider: FileProvider @@ -83,7 +82,7 @@ public struct DocCMiddleware< threadPool: configuration.threadPool, logger: logger ), - logger: logger, + logger: logger ) } @@ -95,7 +94,7 @@ public struct DocCMiddleware< init( configuration: DocCConfiguration, fileProvider: FileSystemProvider, - logger: Logger, + logger: Logger ) { self.logger = logger self.fileProvider = fileProvider