Skip to content

Commit

Permalink
Remove compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeam committed Dec 25, 2016
1 parent b99c5e2 commit 1753fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conn/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,13 @@ impl OptsBuilder {

/// Not implemented on windows
#[cfg(all(feature = "ssl", target_os = "windows"))]
pub fn ssl_opts<A, B, C>(&mut self, ssl_opts: Option<SslOpts>) -> &mut Self {
pub fn ssl_opts<A, B, C>(&mut self, _: Option<SslOpts>) -> &mut Self {
panic!("OptsBuilder::ssl_opts is not implemented on Windows");
}

/// Requires `ssl` feature
#[cfg(not(feature = "ssl"))]
pub fn ssl_opts<A, B, C>(&mut self, ssl_opts: Option<SslOpts>) -> &mut Self {
pub fn ssl_opts<A, B, C>(&mut self, _: Option<SslOpts>) -> &mut Self {
panic!("OptsBuilder::ssl_opts requires `ssl` feature");
}

Expand Down

0 comments on commit 1753fba

Please sign in to comment.