diff options
| author | Anthony Ramine <[email protected]> | 2017-11-21 02:31:00 +0100 |
|---|---|---|
| committer | Anthony Ramine <[email protected]> | 2017-11-21 09:17:39 +0100 |
| commit | 93be1c4f2fdbfcdadc47e2760759493a2871faec (patch) | |
| tree | 4c9880fad8b39ffb257f53041cbc8f2ad2e3091a /openssl/src/x509 | |
| parent | Release v0.9.21 (diff) | |
| download | rust-openssl-93be1c4f2fdbfcdadc47e2760759493a2871faec.tar.xz rust-openssl-93be1c4f2fdbfcdadc47e2760759493a2871faec.zip | |
Update foreign-types to 0.3
Diffstat (limited to 'openssl/src/x509')
| -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; } |