1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-12 02:09:36 +00:00

add links to migration

This commit is contained in:
Nikolay Kim 2018-06-02 09:28:32 -07:00
parent 33326ea41b
commit 8d905c8504

View file

@ -24,13 +24,27 @@
}
```
* Middleware trait uses `&mut self` instead of `&self`.
* [Middleware](https://actix.rs/actix-web/actix_web/middleware/trait.Middleware.html)
trait uses `&mut self` instead of `&self`.
* Removed `Route::with2()` and `Route::with3()` use tuple of extractors instead.
instead of
`fn index((query, json): (Query<..>, Json<MyStruct)) -> impl Responder`
```rust
fn index(query: Query<..>, info: Json<MyStruct) -> impl Responder {}
```
* Removed deprecated `HttpServer::threads()`, use `HttpServer::workers()` instead.
use tuple of extractors:
```rust
fn index((query, json): (Query<..>, Json<MyStruct)) -> impl Responder {}
```
* Removed deprecated `HttpServer::threads()`, use
[HttpServer::workers()](https://actix.rs/actix-web/actix_web/server/struct.HttpServer.html#method.workers) instead.
## 0.6