diff options
| author | Steven Fackler <[email protected]> | 2014-09-04 18:59:38 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-09-04 18:59:38 -0700 |
| commit | f7433cd25e8f4060eaa74bbb68796a51fa202798 (patch) | |
| tree | 367957a9eb7fe8e3a7d814b94e625c5e581f6883 /src | |
| parent | Merge pull request #36 from andrew-d/andrew-add-deriving (diff) | |
| parent | Fix lints for non snake-case functions (diff) | |
| download | rust-openssl-f7433cd25e8f4060eaa74bbb68796a51fa202798.tar.xz rust-openssl-f7433cd25e8f4060eaa74bbb68796a51fa202798.zip | |
Merge pull request #37 from andrew-d/andrew-fix-lints
Fix lints for non snake-case functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/hash.rs | 1 | ||||
| -rw-r--r-- | src/crypto/hmac.rs | 2 | ||||
| -rw-r--r-- | src/ssl/mod.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/crypto/hash.rs b/src/crypto/hash.rs index 2696e77b..6c9f33e4 100644 --- a/src/crypto/hash.rs +++ b/src/crypto/hash.rs @@ -129,6 +129,7 @@ mod tests { expected_output: String } + #[allow(non_snake_case)] fn HashTest(input: &str, output: &str) -> HashTest { HashTest { input: input.from_hex().unwrap(), expected_output: output.to_string() } diff --git a/src/crypto/hmac.rs b/src/crypto/hmac.rs index b2df4ea0..88cd2c1f 100644 --- a/src/crypto/hmac.rs +++ b/src/crypto/hmac.rs @@ -46,7 +46,7 @@ pub struct HMAC { len: uint, } -#[allow(non_snake_case_functions)] +#[allow(non_snake_case)] pub fn HMAC(ht: hash::HashType, key: &[u8]) -> HMAC { unsafe { let (evp, mdlen) = hash::evpmd(ht); diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs index ead1f56f..f343f231 100644 --- a/src/ssl/mod.rs +++ b/src/ssl/mod.rs @@ -156,7 +156,7 @@ impl SslContext { } } - #[allow(non_snake_case_functions)] + #[allow(non_snake_case)] /// Specifies the file that contains trusted CA certificates. pub fn set_CA_file(&mut self, file: &str) -> Option<SslError> { let ret = file.with_c_str(|file| { |