Remove unnecessary mut.

This commit is contained in:
Sergio Benitez 2016-04-11 04:02:39 -07:00
parent b8b44a0594
commit d1a54e9c0e
1 changed files with 1 additions and 1 deletions

View File

@ -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![];