fix(rustup): update io import, Writer::write
Make it build with the latest rust-nightly (2015-01-27) Renamed io import to old_io. Renamed Writer::write to Writer::write_all
This commit is contained in:
committed by
Sean McArthur
parent
537d691d61
commit
f606b6039d
@@ -4,8 +4,8 @@ extern crate hyper;
|
||||
extern crate test;
|
||||
|
||||
use std::fmt;
|
||||
use std::io::{IoResult, MemReader};
|
||||
use std::io::net::ip::SocketAddr;
|
||||
use std::old_io::{IoResult, MemReader};
|
||||
use std::old_io::net::ip::SocketAddr;
|
||||
|
||||
use hyper::net;
|
||||
|
||||
@@ -40,7 +40,7 @@ impl Reader for MockStream {
|
||||
}
|
||||
|
||||
impl Writer for MockStream {
|
||||
fn write(&mut self, _msg: &[u8]) -> IoResult<()> {
|
||||
fn write_all(&mut self, _msg: &[u8]) -> IoResult<()> {
|
||||
// we're mocking, what do we care.
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user