diff options
| author | Steven Fackler <[email protected]> | 2014-03-15 16:28:53 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-03-15 16:28:53 -0700 |
| commit | a881f7d0081b66ed0545231de0ab7a67114893bf (patch) | |
| tree | 58df3d861f66eab18a77cf4256fa233cd5b1023a /ssl/error.rs | |
| parent | Remove unneeded libextra dependency (diff) | |
| download | rust-openssl-a881f7d0081b66ed0545231de0ab7a67114893bf.tar.xz rust-openssl-a881f7d0081b66ed0545231de0ab7a67114893bf.zip | |
De-~[] ssl
Diffstat (limited to 'ssl/error.rs')
| -rw-r--r-- | ssl/error.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/error.rs b/ssl/error.rs index 296812c3..6a89b678 100644 --- a/ssl/error.rs +++ b/ssl/error.rs @@ -1,5 +1,6 @@ use std::libc::c_ulong; use std::io::IoError; +use std::vec_ng::Vec; use ssl::ffi; @@ -11,7 +12,7 @@ pub enum SslError { /// The SSL session has been closed by the other end SslSessionClosed, /// An error in the OpenSSL library - OpenSslErrors(~[OpensslError]) + OpenSslErrors(Vec<OpensslError>) } /// An error from the OpenSSL library @@ -44,7 +45,7 @@ impl SslError { /// Creates a new `OpenSslErrors` with the current contents of the error /// stack. pub fn get() -> SslError { - let mut errs = ~[]; + let mut errs = vec!(); loop { match unsafe { ffi::ERR_get_error() } { 0 => break, |