mirror of https://github.com/rwf2/Rocket.git
Remove unnecessary mut.
This commit is contained in:
parent
b8b44a0594
commit
d1a54e9c0e
|
@ -67,7 +67,7 @@ impl HyperHandler for Rocket {
|
||||||
|
|
||||||
impl Rocket {
|
impl Rocket {
|
||||||
fn dispatch<'h, 'k>(&self, mut req: HyperRequest<'h, 'k>,
|
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
|
// We read all of the contents now because we have to do it at some
|
||||||
// point thanks to Hyper. FIXME: Simple DOS attack here.
|
// point thanks to Hyper. FIXME: Simple DOS attack here.
|
||||||
let mut buf = vec![];
|
let mut buf = vec![];
|
||||||
|
|
Loading…
Reference in New Issue