diff options
| author | Steven Fackler <[email protected]> | 2015-06-27 21:40:00 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-06-27 21:40:00 -0700 |
| commit | 0cff370f1d4e46145bc9047508a7e63402b10adc (patch) | |
| tree | 8ca8d9df3fd17b8cccca132cc3fc772fe91da2d2 /openssl/src/bio | |
| parent | Initialize stream buffer (diff) | |
| download | rust-openssl-0cff370f1d4e46145bc9047508a7e63402b10adc.tar.xz rust-openssl-0cff370f1d4e46145bc9047508a7e63402b10adc.zip | |
Reduce SslStream constructor duplication
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 e0a7d0c9..7eea16d8 100644 --- a/openssl/src/bio/mod.rs +++ b/openssl/src/bio/mod.rs @@ -76,8 +76,7 @@ impl Read for MemBio { if is_eof != 0 { Ok(0) } else { - Err(io::Error::new(io::ErrorKind::Other, - SslError::get())) + Err(io::Error::new(io::ErrorKind::Other, SslError::get())) } } else { Ok(ret as usize) @@ -93,8 +92,7 @@ impl Write for MemBio { }; if ret < 0 { - Err(io::Error::new(io::ErrorKind::Other, - SslError::get())) + Err(io::Error::new(io::ErrorKind::Other, SslError::get())) } else { Ok(ret as usize) } |