diff options
| author | Steven Fackler <[email protected]> | 2015-03-30 23:09:15 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-03-30 23:09:15 -0700 |
| commit | 121a667f9b94e50828da387f3d97d6de144be856 (patch) | |
| tree | 5883aad20df7756fb16f233927e5563b9fa65686 /openssl/src/bio | |
| parent | Remove unsafe_destructor (diff) | |
| download | rust-openssl-121a667f9b94e50828da387f3d97d6de144be856.tar.xz rust-openssl-121a667f9b94e50828da387f3d97d6de144be856.zip | |
Remove a bunch of use of core feature
Diffstat (limited to 'openssl/src/bio')
| -rw-r--r-- | openssl/src/bio/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/openssl/src/bio/mod.rs b/openssl/src/bio/mod.rs index 6229a5ec..ca944adb 100644 --- a/openssl/src/bio/mod.rs +++ b/openssl/src/bio/mod.rs @@ -3,7 +3,6 @@ use std::io; use std::io::prelude::*; use std::ptr; use std::cmp; -use std::num::Int; use ffi; use ssl::error::{SslError}; @@ -61,7 +60,7 @@ impl MemBio { impl Read for MemBio { fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { - let len = cmp::min(<c_int as Int>::max_value() as usize, buf.len()) as c_int; + let len = cmp::min(c_int::max_value() as usize, buf.len()) as c_int; let ret = unsafe { ffi::BIO_read(self.bio, buf.as_ptr() as *mut c_void, len) }; @@ -83,7 +82,7 @@ impl Read for MemBio { impl Write for MemBio { fn write(&mut self, buf: &[u8]) -> io::Result<usize> { - let len = cmp::min(<c_int as Int>::max_value() as usize, buf.len()) as c_int; + let len = cmp::min(c_int::max_value() as usize, buf.len()) as c_int; let ret = unsafe { ffi::BIO_write(self.bio, buf.as_ptr() as *const c_void, len) }; |