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/bio | |
| 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/bio')
| -rw-r--r-- | openssl/src/bio/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openssl/src/bio/mod.rs b/openssl/src/bio/mod.rs index ca944adb..ad2f65c2 100644 --- a/openssl/src/bio/mod.rs +++ b/openssl/src/bio/mod.rs @@ -71,8 +71,7 @@ impl Read for MemBio { Ok(0) } else { Err(io::Error::new(io::ErrorKind::Other, - "MemBio read error", - Some(format!("{:?}", SslError::get())))) + SslError::get())) } } else { Ok(ret as usize) @@ -89,8 +88,7 @@ impl Write for MemBio { if ret < 0 { Err(io::Error::new(io::ErrorKind::Other, - "MemBio write error", - Some(format!("{:?}", SslError::get())))) + SslError::get())) } else { Ok(ret as usize) } |