diff --git a/src/conn/opts.rs b/src/conn/opts.rs index 69af8a2..9b81cd3 100644 --- a/src/conn/opts.rs +++ b/src/conn/opts.rs @@ -349,13 +349,13 @@ impl OptsBuilder { /// Not implemented on windows #[cfg(all(feature = "ssl", target_os = "windows"))] - pub fn ssl_opts(&mut self, ssl_opts: Option) -> &mut Self { + pub fn ssl_opts(&mut self, _: Option) -> &mut Self { panic!("OptsBuilder::ssl_opts is not implemented on Windows"); } /// Requires `ssl` feature #[cfg(not(feature = "ssl"))] - pub fn ssl_opts(&mut self, ssl_opts: Option) -> &mut Self { + pub fn ssl_opts(&mut self, _: Option) -> &mut Self { panic!("OptsBuilder::ssl_opts requires `ssl` feature"); }