From 1579173a1018d7540629c2faeb0c0193437df64d Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Thu, 4 Sep 2014 17:55:35 -0700 Subject: [PATCH] Fix lints for non snake-case functions --- src/crypto/hash.rs | 1 + src/crypto/hmac.rs | 2 +- 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 7c9b2d60..936d3f10 100644 --- a/src/ssl/mod.rs +++ b/src/ssl/mod.rs @@ -155,7 +155,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 { let ret = file.with_c_str(|file| {