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"
[dev-dependencies]
rustc-serialize = "0.2"
rustc-serialize = "0.3"
[dependencies]
bitflags = "0.1.1"

View File

@ -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]

View File

@ -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");
}
}