From de987f20c8ac82d419a0647ca2970331f1ff640e Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 21 Nov 2017 08:51:37 -0800 Subject: Revert "Update foreign-types to 0.3" --- openssl/src/ssl/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openssl/src/ssl') diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index f3f1d219..176863d6 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -76,6 +76,7 @@ use libc::{c_int, c_long, c_ulong, c_void}; use libc::{c_uchar, c_uint}; use std::any::Any; use std::any::TypeId; +use std::borrow::Borrow; use std::cmp; use std::collections::HashMap; use std::ffi::{CStr, CString}; @@ -1025,6 +1026,12 @@ impl Clone for SslSession { } } +impl Borrow for SslSession { + fn borrow(&self) -> &SslSessionRef { + &self + } +} + impl ToOwned for SslSessionRef { type Owned = SslSession; -- cgit v1.2.3