diff options
| author | Sean McArthur <[email protected]> | 2015-04-02 11:01:22 -0700 |
|---|---|---|
| committer | Sean McArthur <[email protected]> | 2015-04-02 11:12:18 -0700 |
| commit | 24b876521b7023ad01de8952f796b73233681e13 (patch) | |
| tree | f0809d652b4b5a5c83a18d69a18c58b8faaeb364 /openssl/src/ssl/mod.rs | |
| parent | Remove a bunch of use of core feature (diff) | |
| download | rust-openssl-24b876521b7023ad01de8952f796b73233681e13.tar.xz rust-openssl-24b876521b7023ad01de8952f796b73233681e13.zip | |
rustup: changes to io::Error
Diffstat (limited to 'openssl/src/ssl/mod.rs')
| -rw-r--r-- | openssl/src/ssl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index edd4daae..9f63ac4d 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -808,7 +808,7 @@ impl<S: Read+Write> Read for SslStream<S> { Err(SslSessionClosed) => Ok(0), Err(StreamError(e)) => Err(e), Err(e @ OpenSslErrors(_)) => { - Err(io::Error::new(io::ErrorKind::Other, "OpenSSL error", Some(format!("{}", e)))) + Err(io::Error::new(io::ErrorKind::Other, e)) } } } @@ -821,7 +821,7 @@ impl<S: Read+Write> Write for SslStream<S> { Err(SslSessionClosed) => Ok(0), Err(StreamError(e)) => return Err(e), Err(e @ OpenSslErrors(_)) => { - Err(io::Error::new(io::ErrorKind::Other, "OpenSSL error", Some(format!("{}", e)))) + Err(io::Error::new(io::ErrorKind::Other, e)) } } } |