diff options
| author | Steven Fackler <[email protected]> | 2015-01-28 08:47:16 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-01-28 08:47:16 -0800 |
| commit | 030cf5fe88f292a48b71789f5d0e9a9b133c5c09 (patch) | |
| tree | e105f6e7ddf28efbc6f58f8424f87b1b1bc46da6 /src/bio | |
| parent | Release v0.2.17 (diff) | |
| download | rust-openssl-030cf5fe88f292a48b71789f5d0e9a9b133c5c09.tar.xz rust-openssl-030cf5fe88f292a48b71789f5d0e9a9b133c5c09.zip | |
Fix for IO changes
Diffstat (limited to 'src/bio')
| -rw-r--r-- | src/bio/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bio/mod.rs b/src/bio/mod.rs index a354ed86..2f12f906 100644 --- a/src/bio/mod.rs +++ b/src/bio/mod.rs @@ -1,6 +1,6 @@ use libc::{c_void, c_int}; -use std::io::{EndOfFile, IoResult, IoError, OtherIoError}; -use std::io::{Reader, Writer}; +use std::old_io::{EndOfFile, IoResult, IoError, OtherIoError}; +use std::old_io::{Reader, Writer}; use std::ptr; use ffi; @@ -87,7 +87,7 @@ impl Reader for MemBio { } impl Writer for MemBio { - fn write(&mut self, buf: &[u8]) -> IoResult<()> { + fn write_all(&mut self, buf: &[u8]) -> IoResult<()> { let ret = unsafe { ffi::BIO_write(self.bio, buf.as_ptr() as *const c_void, buf.len() as c_int) |