From ac24bc542213b5423032a42b413360c5a089f46d Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 20 Mar 2015 08:33:42 -0700 Subject: [PATCH] Fix warnings and build issues --- openssl/Cargo.toml | 2 +- openssl/src/lib.rs | 3 +-- openssl/src/x509/mod.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/openssl/Cargo.toml b/openssl/Cargo.toml index 140e8ce8b..951fa9582 100644 --- a/openssl/Cargo.toml +++ b/openssl/Cargo.toml @@ -23,7 +23,7 @@ version = "0.5.0" libc = "0.1" [dev-dependencies] -rustc-serialize = "0.2" +rustc-serialize = "0.3" [dependencies] bitflags = "0.1.1" diff --git a/openssl/src/lib.rs b/openssl/src/lib.rs index 566151d18..9b476ba40 100644 --- a/openssl/src/lib.rs +++ b/openssl/src/lib.rs @@ -1,5 +1,4 @@ -#![feature(unsafe_destructor, core, io, std_misc, net, path, unique)] -#![cfg_attr(test, feature(net))] +#![feature(unsafe_destructor, core, io, std_misc, unique)] #![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl")] #[macro_use] diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 97d3dbdb7..33ed1fa5f 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -521,7 +521,7 @@ make_validation_error!(X509_V_OK, #[test] fn test_negative_serial() { // I guess that's enough to get a random negative number - for _ in range(0, 1000) { + for _ in 0..1000 { assert!(X509Generator::random_serial() > 0, "All serials should be positive"); } } -- GitLab