Skip to content

Commit

Permalink
fix(server): Switch Ssl to SslServer in bounds
Browse files Browse the repository at this point in the history
An oversight from the original implementation of the Ssl split.
  • Loading branch information
sfackler committed May 20, 2016
1 parent 053eeeb commit 470bc8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ pub struct HttpsListener<S: SslServer> {
ssl: S,
}

impl<S: Ssl> HttpsListener<S> {
impl<S: SslServer> HttpsListener<S> {
/// Start listening to an address over HTTPS.
pub fn new<To: ToSocketAddrs>(addr: To, ssl: S) -> ::Result<HttpsListener<S>> {
HttpListener::new(addr).map(|l| HttpsListener {
Expand Down
4 changes: 2 additions & 2 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ use buffer::BufReader;
use header::{Headers, Expect, Connection};
use http;
use method::Method;
use net::{NetworkListener, NetworkStream, HttpListener, HttpsListener, Ssl};
use net::{NetworkListener, NetworkStream, HttpListener, HttpsListener, SslServer};
use status::StatusCode;
use uri::RequestUri;
use version::HttpVersion::Http11;
Expand Down Expand Up @@ -214,7 +214,7 @@ impl Server<HttpListener> {
}
}

impl<S: Ssl + Clone + Send> Server<HttpsListener<S>> {
impl<S: SslServer + Clone + Send> Server<HttpsListener<S>> {
/// Creates a new server that will handle `HttpStream`s over SSL.
///
/// You can use any SSL implementation, as long as implements `hyper::net::Ssl`.
Expand Down

0 comments on commit 470bc8e

Please sign in to comment.