Skip to content

Commit 470bc8e

Browse files
committed
fix(server): Switch Ssl to SslServer in bounds
An oversight from the original implementation of the Ssl split.
1 parent 053eeeb commit 470bc8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ pub struct HttpsListener<S: SslServer> {
532532
ssl: S,
533533
}
534534

535-
impl<S: Ssl> HttpsListener<S> {
535+
impl<S: SslServer> HttpsListener<S> {
536536
/// Start listening to an address over HTTPS.
537537
pub fn new<To: ToSocketAddrs>(addr: To, ssl: S) -> ::Result<HttpsListener<S>> {
538538
HttpListener::new(addr).map(|l| HttpsListener {

src/server/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ use buffer::BufReader;
125125
use header::{Headers, Expect, Connection};
126126
use http;
127127
use method::Method;
128-
use net::{NetworkListener, NetworkStream, HttpListener, HttpsListener, Ssl};
128+
use net::{NetworkListener, NetworkStream, HttpListener, HttpsListener, SslServer};
129129
use status::StatusCode;
130130
use uri::RequestUri;
131131
use version::HttpVersion::Http11;
@@ -214,7 +214,7 @@ impl Server<HttpListener> {
214214
}
215215
}
216216

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

0 commit comments

Comments
 (0)