Skip to content

Commit

Permalink
Fix the benches for latest rust changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
reem committed Jan 6, 2015
1 parent 93fcd05 commit 4756544
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benches/client_mock_tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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())
}
}

Expand Down

0 comments on commit 4756544

Please sign in to comment.