diff options
| author | Steven Fackler <[email protected]> | 2017-11-26 17:07:24 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-11-26 17:07:24 -0700 |
| commit | e9ad9f1afd0429dd56af8e59ec9ad74020ca15e3 (patch) | |
| tree | d825992569969ec07be9130a37561e8b5bc1471b /openssl/src/x509/mod.rs | |
| parent | Merge pull request #779 from sfackler/revert-778-foreign-types (diff) | |
| download | rust-openssl-e9ad9f1afd0429dd56af8e59ec9ad74020ca15e3.tar.xz rust-openssl-e9ad9f1afd0429dd56af8e59ec9ad74020ca15e3.zip | |
Upgrade foreign-types
foreign-types 0.3 and 0.2 now share the same types and traits, so this
is backwards compatible.
Diffstat (limited to 'openssl/src/x509/mod.rs')
| -rw-r--r-- | openssl/src/x509/mod.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index db61262c..dff65222 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -2,7 +2,6 @@ use libc::{c_int, c_long}; use ffi; use foreign_types::{ForeignType, ForeignTypeRef}; -use std::borrow::Borrow; use std::collections::HashMap; use std::error::Error; use std::ffi::{CStr, CString}; @@ -620,24 +619,12 @@ impl Clone for X509 { } } -impl AsRef<X509Ref> for X509 { - fn as_ref(&self) -> &X509Ref { - &*self - } -} - impl AsRef<X509Ref> for X509Ref { fn as_ref(&self) -> &X509Ref { self } } -impl Borrow<X509Ref> for X509 { - fn borrow(&self) -> &X509Ref { - &*self - } -} - impl Stackable for X509 { type StackType = ffi::stack_st_X509; } |