From 93be1c4f2fdbfcdadc47e2760759493a2871faec Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 21 Nov 2017 02:31:00 +0100 Subject: Update foreign-types to 0.3 --- openssl/src/x509/mod.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'openssl/src/x509') 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 for X509 { - fn as_ref(&self) -> &X509Ref { - &*self - } -} - impl AsRef for X509Ref { fn as_ref(&self) -> &X509Ref { self } } -impl Borrow for X509 { - fn borrow(&self) -> &X509Ref { - &*self - } -} - impl Stackable for X509 { type StackType = ffi::stack_st_X509; } -- cgit v1.2.3