From d1a54e9c0e8ca8f1b00f714f4abd4b2f9a15a4c5 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 11 Apr 2016 04:02:39 -0700 Subject: [PATCH] Remove unnecessary mut. --- lib/src/rocket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/rocket.rs b/lib/src/rocket.rs index 94206aec..5f27ff78 100644 --- a/lib/src/rocket.rs +++ b/lib/src/rocket.rs @@ -67,7 +67,7 @@ impl HyperHandler for Rocket { impl Rocket { fn dispatch<'h, 'k>(&self, mut req: HyperRequest<'h, 'k>, - mut res: FreshHyperResponse<'h>) { + res: FreshHyperResponse<'h>) { // We read all of the contents now because we have to do it at some // point thanks to Hyper. FIXME: Simple DOS attack here. let mut buf = vec![];