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

Rename HttpRequest::without_state into drop_state and make it public

This commit is contained in:
Douman
2018-04-11 22:27:17 +03:00
parent c570229351
commit 62a9b4c53c
5 changed files with 15 additions and 15 deletions

View File

@@ -337,7 +337,7 @@ impl<S, H, R> RouteHandler<S> for WrapHandler<S, H, R>
S: 'static,
{
fn handle(&mut self, req: HttpRequest<S>) -> Reply {
let req2 = req.without_state();
let req2 = req.drop_state();
match self.h.handle(req).respond_to(req2) {
Ok(reply) => reply.into(),
Err(err) => Reply::response(err.into()),
@@ -378,7 +378,7 @@ impl<S, H, F, R, E> RouteHandler<S> for AsyncHandler<S, H, F, R, E>
S: 'static,
{
fn handle(&mut self, req: HttpRequest<S>) -> Reply {
let req2 = req.without_state();
let req2 = req.drop_state();
let fut = (self.h)(req)
.map_err(|e| e.into())
.then(move |r| {