From f659c37d29665a4a69d847723e7e1dfd256e3541 Mon Sep 17 00:00:00 2001 From: zzmp Date: Thu, 19 Jun 2014 12:56:55 -0700 Subject: Squelch warnings This squelches warnings from dead_code for many idiomatic structs. This squelches warnings for non_camel_case_functions for idiomatically named fns. --- ssl/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ssl') diff --git a/ssl/mod.rs b/ssl/mod.rs index c2cab075..8687ca05 100644 --- a/ssl/mod.rs +++ b/ssl/mod.rs @@ -154,6 +154,7 @@ impl SslContext { } } + #[allow(non_snake_case_functions)] /// 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| { @@ -191,6 +192,7 @@ impl X509StoreContext { } } +#[allow(dead_code)] /// A public key certificate pub struct X509<'ctx> { ctx: &'ctx X509StoreContext, @@ -204,6 +206,7 @@ impl<'ctx> X509<'ctx> { } } +#[allow(dead_code)] pub struct X509Name<'x> { x509: &'x X509<'x>, name: *ffi::X509_NAME @@ -379,6 +382,7 @@ enum LibSslError { ErrorWantAccept = ffi::SSL_ERROR_WANT_ACCEPT, } +#[allow(dead_code)] struct MemBioRef<'ssl> { ssl: &'ssl Ssl, bio: MemBio, -- cgit v1.2.3