fix(http): is_valid_method expects &-ptr

This commit is contained in:
Jakob Gillich
2014-11-19 22:01:39 +01:00
parent 35b7ec132e
commit f3e1baea9f
2 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ use std::io::net::ip::Ipv4Addr;
static PHRASE: &'static [u8] = b"Hello World!";
fn hyper_handle(mut incoming: hyper::server::Incoming) {
let mut pool = TaskPool::new(100);
let pool = TaskPool::new(100);
for conn in incoming {
pool.execute(proc() {