Fix warnings and build issues

This commit is contained in:
Steven Fackler 2015-03-20 08:33:42 -07:00
parent 5adbe4b362
commit ac24bc5422
3 changed files with 3 additions and 4 deletions

View File

@ -23,7 +23,7 @@ version = "0.5.0"
libc = "0.1" libc = "0.1"
[dev-dependencies] [dev-dependencies]
rustc-serialize = "0.2" rustc-serialize = "0.3"
[dependencies] [dependencies]
bitflags = "0.1.1" bitflags = "0.1.1"

View File

@ -1,5 +1,4 @@
#![feature(unsafe_destructor, core, io, std_misc, net, path, unique)] #![feature(unsafe_destructor, core, io, std_misc, unique)]
#![cfg_attr(test, feature(net))]
#![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl")] #![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl")]
#[macro_use] #[macro_use]

View File

@ -521,7 +521,7 @@ make_validation_error!(X509_V_OK,
#[test] #[test]
fn test_negative_serial() { fn test_negative_serial() {
// I guess that's enough to get a random negative number // 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"); assert!(X509Generator::random_serial() > 0, "All serials should be positive");
} }
} }