Skip to content

Commit c74a1ab

Browse files
committed
Attempt to make constraints understandable for Swift 5.9
1 parent 31f99db commit c74a1ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Hummingbird/Middleware/Middleware.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public protocol MiddlewareProtocol<Input, Output, Context>: ContextTransformingM
5555
/// ```
5656

5757
/// Middleware protocol with Request as input and Response as output
58-
public protocol RouterMiddleware<Context>: MiddlewareProtocol where Input == Request, Output == Response {}
58+
public protocol RouterMiddleware<Context>: MiddlewareProtocol where Input == Request, Output == Response, InputContext == Context, OutputContext == Context {}
5959

6060
struct MiddlewareResponder<Context>: HTTPResponder {
6161
let middleware: any MiddlewareProtocol<Request, Response, Context>

0 commit comments

Comments
 (0)