Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Mar 11, 2015
1 parent 8b8736f commit a65b03c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion openssl-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/crypto/memcmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod tests {
}

#[test]
#[should_fail]
#[should_panic]
fn test_diff_lens() {
eq(&[], &[1]);
}
Expand Down
4 changes: 2 additions & 2 deletions openssl/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion openssl/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()
}
Expand Down

0 comments on commit a65b03c

Please sign in to comment.