mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-17 23:19:06 +00:00
Remove unnecessary mut.
This commit is contained in:
parent
b8b44a0594
commit
d1a54e9c0e
@ -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![];
|
||||
|
Loading…
Reference in New Issue
Block a user