Update doc example of actix middleware
オープン
code
good-first-issue
- 主要言語
- HTML
- スター
- 210
- フォーク
- 283
- 平均マージ
- 18時間 33分
- マージ済み PR(30日)
- 8
説明
Hi,
since v2 this middleware documentation example won't compile anymore due to lack of Req type declaration: https://actix.rs/docs/middleware/
I've been fiddling around with it to make my middleware compatible, but couldn't figure this one out:
``` rust
impl Transform for MyMiddleware
where
S: Service, Error = Error>,
S::Future: 'static,
B: 'static,
{
```
the compiler complains about
`S: Service, Error = Error>,`
because
```
wrong number of type arguments: expected 1, found 0
expected 1 type argument
```
コントリビューションガイド
評価
この issue はまだ評価されていません。