actix / actix/actix-website

Update doc example of actix middleware

オープン
#227 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。