We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5813b commit 401ae4eCopy full SHA for 401ae4e
benches/client_mock_tcp.rs
@@ -6,8 +6,6 @@ extern crate test;
6
use std::fmt::{self, Show};
7
use std::io::{IoResult, MemReader};
8
use std::io::net::ip::SocketAddr;
9
-use std::os;
10
-use std::path::BytesContainer;
11
12
use hyper::net;
13
@@ -36,7 +34,7 @@ impl MockStream {
36
34
}
37
35
38
impl Reader for MockStream {
39
- fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> {
+ fn read(&mut self, buf: &mut [u8]) -> IoResult<usize> {
40
self.read.read(buf)
41
42
0 commit comments