Skip to content

Commit

Permalink
Pointless reassign removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hoad committed May 7, 2016
1 parent 32eb225 commit 49be48d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/server.rs
Expand Up @@ -4,9 +4,7 @@ use std::io::{self, Read, Write};

use ::request::Request;

fn handle_request<'buf, S: Write + Read>(stream: &mut S, request: Request<'buf>, body: Vec<u8>) {
let mut body = body;

fn handle_request<'buf, S: Write + Read>(stream: &mut S, request: Request<'buf>, mut body: Vec<u8>) {
match request.headers.content_length() {
Some(n) => {
if body.len() == n {
Expand Down

0 comments on commit 49be48d

Please sign in to comment.