From e9ad9f1afd0429dd56af8e59ec9ad74020ca15e3 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 26 Nov 2017 17:07:24 -0700 Subject: Upgrade foreign-types foreign-types 0.3 and 0.2 now share the same types and traits, so this is backwards compatible. --- openssl/src/ssl/mod.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'openssl/src/ssl') diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 176863d6..e135535a 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -76,7 +76,6 @@ 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}; @@ -777,8 +776,7 @@ impl SslContextBuilder { #[cfg(not(osslconf = "OPENSSL_NO_PSK"))] pub fn set_psk_callback(&mut self, callback: F) where - F: Fn(&mut SslRef, Option<&[u8]>, &mut [u8], &mut [u8]) - -> Result + F: Fn(&mut SslRef, Option<&[u8]>, &mut [u8], &mut [u8]) -> Result + Any + 'static + Sync @@ -1026,12 +1024,6 @@ impl Clone for SslSession { } } -impl Borrow for SslSession { - fn borrow(&self) -> &SslSessionRef { - &self - } -} - impl ToOwned for SslSessionRef { type Owned = SslSession; -- cgit v1.2.3