Track master: proc removal, tuple indexing

This commit is contained in:
Valerii Hiora 2014-12-15 14:01:17 +02:00
parent 9754b8e47d
commit 6119d916cb
2 changed files with 2 additions and 2 deletions

View File

@ -541,7 +541,7 @@ impl<S: Stream> Writer for SslStream<S> {
let mut start = 0;
while start < buf.len() {
let ret = self.in_retry_wrapper(|ssl| {
ssl.write(buf.split_at(start).val1())
ssl.write(buf.split_at(start).1)
});
match ret {
Ok(len) => start += len as uint,

View File

@ -198,7 +198,7 @@ fn test_clone() {
let stream = TcpStream::connect("127.0.0.1:15418").unwrap();
let mut stream = SslStream::new(&SslContext::new(Sslv23).unwrap(), stream).unwrap();
let mut stream2 = stream.clone();
spawn(proc() {
spawn(move || {
stream2.write("GET /\r\n\r\n".as_bytes()).unwrap();
stream2.flush().unwrap();
});