Fixed typo in SSL implementation that went unnoticed.

This commit is contained in:
Aaron Weiss 2014-12-01 18:34:39 -05:00
parent 0588de82e0
commit b05994e65c
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "irc"
version = "0.4.0"
version = "0.4.1"
description = "A simple, thread-safe IRC client library."
authors = ["Aaron Weiss <aaronweiss74@gmail.com>"]
license = "Unlicense"

View file

@ -81,7 +81,7 @@ impl Connection<BufferedReader<NetStream>, BufferedWriter<NetStream>> {
let ssl_socket = try!(ssl_to_io(SslStream::new(&ssl, socket)));
Ok(Connection::new(
BufferedReader::new(NetStream::SslTcpStream(ssl_socket.clone())),
BufferedWriter::new(NetStream::SslTcpSteram(ssl_socket)),
BufferedWriter::new(NetStream::SslTcpStream(ssl_socket)),
))
}
}