diff options
| author | Steven Fackler <[email protected]> | 2015-03-20 08:33:42 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-03-20 08:33:42 -0700 |
| commit | ac24bc542213b5423032a42b413360c5a089f46d (patch) | |
| tree | f77ef164da72df1a6fb93edae73be10e972b1340 /openssl/src | |
| parent | Merge pull request #184 from alexcrichton/update (diff) | |
| download | rust-openssl-ac24bc542213b5423032a42b413360c5a089f46d.tar.xz rust-openssl-ac24bc542213b5423032a42b413360c5a089f46d.zip | |
Fix warnings and build issues
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/lib.rs | 3 | ||||
| -rw-r--r-- | openssl/src/x509/mod.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/openssl/src/lib.rs b/openssl/src/lib.rs index 566151d1..9b476ba4 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 97d3dbdb..33ed1fa5 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"); } } |