Commit da0b2c4
committed
fix: use closure-typed HandlerAsync for middleware in Nim 2.0
Nim 2.0 doesn't implicitly convert top-level procs to closures.
Prologue's use() expects HandlerAsync (closure type), so declaring
the middleware as a let variable typed HandlerAsync forces the proc
to be a closure.1 parent 6e349b3 commit da0b2c4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments