Merge pull request #122 from vhbit/proc_removal

Track master: proc removal, tuple indexing
This commit is contained in:
Steven Fackler 2014-12-15 12:25:20 -05:00
commit a2341541d6
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();
});