1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

Handler::handle uses &self instead of mutabble reference

This commit is contained in:
Nikolay Kim
2018-06-21 17:07:54 +06:00
parent 5a9992736f
commit 3de9284592
12 changed files with 57 additions and 50 deletions

View File

@ -37,7 +37,7 @@
* Use tokio instead of tokio-core
* Use `&mut self` instead of `&self` for Middleware trait
* For safety and performance reasons `Handler::handle()` uses `&self` instead of `&mut self`
* Added header `User-Agent: Actix-web/<current_version>` to default headers when building a request