From 470bc8ec396bfc9ead6782f72e6de58268767a5a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 19 May 2016 22:53:20 -0700 Subject: [PATCH] fix(server): Switch Ssl to SslServer in bounds An oversight from the original implementation of the Ssl split. --- src/net.rs | 2 +- src/server/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net.rs b/src/net.rs index 640b70ce4e..5d7a6edeb3 100644 --- a/src/net.rs +++ b/src/net.rs @@ -532,7 +532,7 @@ pub struct HttpsListener { ssl: S, } -impl HttpsListener { +impl HttpsListener { /// Start listening to an address over HTTPS. pub fn new(addr: To, ssl: S) -> ::Result> { HttpListener::new(addr).map(|l| HttpsListener { diff --git a/src/server/mod.rs b/src/server/mod.rs index 7299a055b7..081fc740a8 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -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; @@ -214,7 +214,7 @@ impl Server { } } -impl Server> { +impl Server> { /// Creates a new server that will handle `HttpStream`s over SSL. /// /// You can use any SSL implementation, as long as implements `hyper::net::Ssl`.