Fix lints for non snake-case functions
This commit is contained in:
parent
cd40d25cb5
commit
1579173a10
|
|
@ -129,6 +129,7 @@ mod tests {
|
||||||
expected_output: String
|
expected_output: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(non_snake_case)]
|
||||||
fn HashTest(input: &str, output: &str) -> HashTest {
|
fn HashTest(input: &str, output: &str) -> HashTest {
|
||||||
HashTest { input: input.from_hex().unwrap(),
|
HashTest { input: input.from_hex().unwrap(),
|
||||||
expected_output: output.to_string() }
|
expected_output: output.to_string() }
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ pub struct HMAC {
|
||||||
len: uint,
|
len: uint,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(non_snake_case_functions)]
|
#[allow(non_snake_case)]
|
||||||
pub fn HMAC(ht: hash::HashType, key: &[u8]) -> HMAC {
|
pub fn HMAC(ht: hash::HashType, key: &[u8]) -> HMAC {
|
||||||
unsafe {
|
unsafe {
|
||||||
let (evp, mdlen) = hash::evpmd(ht);
|
let (evp, mdlen) = hash::evpmd(ht);
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ impl SslContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(non_snake_case_functions)]
|
#[allow(non_snake_case)]
|
||||||
/// Specifies the file that contains trusted CA certificates.
|
/// Specifies the file that contains trusted CA certificates.
|
||||||
pub fn set_CA_file(&mut self, file: &str) -> Option<SslError> {
|
pub fn set_CA_file(&mut self, file: &str) -> Option<SslError> {
|
||||||
let ret = file.with_c_str(|file| {
|
let ret = file.with_c_str(|file| {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue