test(benches): fix warnings in mock_tcp

This commit is contained in:
Sean McArthur
2015-01-20 10:33:20 -08:00
parent 7a5813b4b2
commit 401ae4ec49

View File

@@ -6,8 +6,6 @@ extern crate test;
use std::fmt::{self, Show}; use std::fmt::{self, Show};
use std::io::{IoResult, MemReader}; use std::io::{IoResult, MemReader};
use std::io::net::ip::SocketAddr; use std::io::net::ip::SocketAddr;
use std::os;
use std::path::BytesContainer;
use hyper::net; use hyper::net;
@@ -36,7 +34,7 @@ impl MockStream {
} }
impl Reader for 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) self.read.read(buf)
} }
} }