Merge pull request #778 from nox/foreign-types
Update foreign-types to 0.3
This commit is contained in:
commit
6f54dff650
|
|
@ -20,7 +20,7 @@ v110 = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.9"
|
bitflags = "0.9"
|
||||||
foreign-types = "0.2"
|
foreign-types = "0.3"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
openssl-sys = { version = "0.9.21", path = "../openssl-sys" }
|
openssl-sys = { version = "0.9.21", path = "../openssl-sys" }
|
||||||
|
|
|
||||||
|
|
@ -1090,12 +1090,6 @@ impl BigNum {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AsRef<BigNumRef> for BigNum {
|
|
||||||
fn as_ref(&self) -> &BigNumRef {
|
|
||||||
self.deref()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl fmt::Debug for BigNumRef {
|
impl fmt::Debug for BigNumRef {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
match self.to_dec_str() {
|
match self.to_dec_str() {
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,6 @@ use libc::{c_int, c_long, c_ulong, c_void};
|
||||||
use libc::{c_uchar, c_uint};
|
use libc::{c_uchar, c_uint};
|
||||||
use std::any::Any;
|
use std::any::Any;
|
||||||
use std::any::TypeId;
|
use std::any::TypeId;
|
||||||
use std::borrow::Borrow;
|
|
||||||
use std::cmp;
|
use std::cmp;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::ffi::{CStr, CString};
|
use std::ffi::{CStr, CString};
|
||||||
|
|
@ -1026,12 +1025,6 @@ impl Clone for SslSession {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Borrow<SslSessionRef> for SslSession {
|
|
||||||
fn borrow(&self) -> &SslSessionRef {
|
|
||||||
&self
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ToOwned for SslSessionRef {
|
impl ToOwned for SslSessionRef {
|
||||||
type Owned = SslSession;
|
type Owned = SslSession;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
use libc::{c_int, c_long};
|
use libc::{c_int, c_long};
|
||||||
use ffi;
|
use ffi;
|
||||||
use foreign_types::{ForeignType, ForeignTypeRef};
|
use foreign_types::{ForeignType, ForeignTypeRef};
|
||||||
use std::borrow::Borrow;
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::ffi::{CStr, CString};
|
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 {
|
impl AsRef<X509Ref> for X509Ref {
|
||||||
fn as_ref(&self) -> &X509Ref {
|
fn as_ref(&self) -> &X509Ref {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Borrow<X509Ref> for X509 {
|
|
||||||
fn borrow(&self) -> &X509Ref {
|
|
||||||
&*self
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Stackable for X509 {
|
impl Stackable for X509 {
|
||||||
type StackType = ffi::stack_st_X509;
|
type StackType = ffi::stack_st_X509;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue