From 0e2e9a365d0fe4714f547c5389dd6b6bed3c292a Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Fri, 18 Dec 2020 08:20:18 +0800 Subject: [PATCH] remove unused State variant --- actix-http/src/h1/dispatcher.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/actix-http/src/h1/dispatcher.rs b/actix-http/src/h1/dispatcher.rs index 78196170b..3292cbd59 100644 --- a/actix-http/src/h1/dispatcher.rs +++ b/actix-http/src/h1/dispatcher.rs @@ -127,8 +127,6 @@ where ExpectCall(#[pin] X::Future), ServiceCall(#[pin] S::Future), SendPayload(#[pin] ResponseBody), - // A special state hinting the state should not be updated. - NoOp, } impl State @@ -444,9 +442,6 @@ where } continue; } - StateProj::NoOp => { - unreachable!("State::NoOp is only used in handle_request method") - } }; this = self.as_mut().project();