Skip to content

Commit f6f6446

Browse files
committed
Override associatedtypes in the hopes Swift 5.x understands this
1 parent c74a1ab commit f6f6446

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Hummingbird/Middleware/Middleware.swift

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public protocol ContextTransformingMiddlewareProtocol<Input, Output, InputContex
2626
/// Middleware protocol with generic input, context and output types
2727
public protocol MiddlewareProtocol<Input, Output, Context>: ContextTransformingMiddlewareProtocol where InputContext == OutputContext, Context == InputContext {
2828
associatedtype Context
29+
associatedtype InputContext = Context
30+
associatedtype OutputContext = Context
2931
}
3032

3133
/// Applied to `Request` before it is dealt with by the router. Middleware passes the processed request onto the next responder

0 commit comments

Comments
 (0)