Skip to content

Commit

Permalink
test(benches): fix warnings in mock_tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jan 20, 2015
1 parent 7a5813b commit 401ae4e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions benches/client_mock_tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ extern crate test;
use std::fmt::{self, Show};
use std::io::{IoResult, MemReader};
use std::io::net::ip::SocketAddr;
use std::os;
use std::path::BytesContainer;

use hyper::net;

Expand Down Expand Up @@ -36,7 +34,7 @@ impl MockStream {
}

impl Reader for MockStream {
fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> {
fn read(&mut self, buf: &mut [u8]) -> IoResult<usize> {
self.read.read(buf)
}
}
Expand Down

0 comments on commit 401ae4e

Please sign in to comment.