Commit a65b03c8 authored by Steven Fackler's avatar Steven Fackler
Browse files

Fix warnings

parent 8b8736fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
#![allow(dead_code)]
#![feature(path, fs)]
#![feature(path, path_ext)]
#![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl-sys")]

extern crate libc;
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ mod tests {
    }

    #[test]
    #[should_fail]
    #[should_panic]
    fn test_diff_lens() {
        eq(&[], &[1]);
    }
+2 −2
Original line number Diff line number Diff line
#![feature(unsafe_destructor, core, io, std_misc, net, path, os, unique)]
#![cfg_attr(test, feature(net, fs))]
#![feature(unsafe_destructor, core, io, std_misc, net, path, unique)]
#![cfg_attr(test, feature(net))]
#![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl")]

#[macro_use]
+1 −1
Original line number Diff line number Diff line
@@ -432,7 +432,7 @@ impl Ssl {

    fn get_error(&self, ret: c_int) -> LibSslError {
        let err = unsafe { ffi::SSL_get_error(*self.ssl, ret) };
        match FromPrimitive::from_int(err as isize) {
        match FromPrimitive::from_isize(err as isize) {
            Some(err) => err,
            None => unreachable!()
        }