Fix the benches for latest rust changes.

This commit is contained in:
Jonathan Reem
2015-01-06 01:24:00 +01:00
parent 93fcd05b9d
commit 4756544a18

View File

@@ -5,7 +5,6 @@ extern crate hyper;
extern crate test;
use std::fmt::{self, Show};
use std::str::from_str;
use std::io::{IoResult, MemReader};
use std::io::net::ip::SocketAddr;
use std::os;
@@ -85,7 +84,7 @@ impl hyper::header::HeaderFormat for Foo {
impl net::NetworkStream for MockStream {
fn peer_name(&mut self) -> IoResult<SocketAddr> {
Ok(from_str("127.0.0.1:1337").unwrap())
Ok("127.0.0.1:1337".parse().unwrap())
}
}