Skip to content

Commit 401ae4e

Browse files
committed
test(benches): fix warnings in mock_tcp
1 parent 7a5813b commit 401ae4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

benches/client_mock_tcp.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ extern crate test;
66
use std::fmt::{self, Show};
77
use std::io::{IoResult, MemReader};
88
use std::io::net::ip::SocketAddr;
9-
use std::os;
10-
use std::path::BytesContainer;
119

1210
use hyper::net;
1311

@@ -36,7 +34,7 @@ impl MockStream {
3634
}
3735

3836
impl Reader for MockStream {
39-
fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> {
37+
fn read(&mut self, buf: &mut [u8]) -> IoResult<usize> {
4038
self.read.read(buf)
4139
}
4240
}

0 commit comments

Comments
 (0)