Fix warnings

This commit is contained in:
Steven Fackler 2015-03-10 19:38:44 -07:00
parent 8b8736fb46
commit a65b03c89e
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#![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;

View File

@ -32,7 +32,7 @@ mod tests {
}
#[test]
#[should_fail]
#[should_panic]
fn test_diff_lens() {
eq(&[], &[1]);
}

View File

@ -1,5 +1,5 @@
#![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]

View File

@ -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!()
}