diff options
author | Steven Fackler <sfackler@gmail.com> | 2016-11-04 16:32:20 -0700 |
---|---|---|
committer | Steven Fackler <sfackler@gmail.com> | 2016-11-04 17:16:59 -0700 |
commit | 01ae978db0dc8620b2cc754c0d5cf94a68c1f549 (patch) | |
tree | bc9a3bc83a1efe4853628a1c56eca8af75e079c9 /openssl/src/asn1.rs | |
parent | 25443d7b486576b846ed90125e3e56e16c9bc734 (diff) | |
download | rust-openssl-01ae978db0dc8620b2cc754c0d5cf94a68c1f549.zip |
Get rid of Ref
There's unfortunately a rustdoc bug that causes all methods implemented
for any Ref<T> to be inlined in the deref methods section :(
Diffstat (limited to 'openssl/src/asn1.rs')
-rw-r--r-- | openssl/src/asn1.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openssl/src/asn1.rs b/openssl/src/asn1.rs index e1d94d09..46c28740 100644 --- a/openssl/src/asn1.rs +++ b/openssl/src/asn1.rs @@ -9,11 +9,11 @@ use {cvt, cvt_p}; use bio::MemBio; use crypto::CryptoString; use error::ErrorStack; -use types::{OpenSslType, Ref}; +use types::{OpenSslType, OpenSslTypeRef}; -type_!(Asn1Time, ffi::ASN1_TIME, ffi::ASN1_TIME_free); +type_!(Asn1Time, Asn1TimeRef, ffi::ASN1_TIME, ffi::ASN1_TIME_free); -impl fmt::Display for Ref<Asn1Time> { +impl fmt::Display for Asn1TimeRef { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { unsafe { let mem_bio = try!(MemBio::new()); @@ -39,9 +39,9 @@ impl Asn1Time { } } -type_!(Asn1String, ffi::ASN1_STRING, ffi::ASN1_STRING_free); +type_!(Asn1String, Asn1StringRef, ffi::ASN1_STRING, ffi::ASN1_STRING_free); -impl Ref<Asn1String> { +impl Asn1StringRef { pub fn as_utf8(&self) -> Result<CryptoString, ErrorStack> { unsafe { let mut ptr = ptr::null_mut(); |