From 4264574af11cae56496165e8dbd5440b37403571 Mon Sep 17 00:00:00 2001
From: Nikolay Kim <fafhrd91@gmail.com>
Date: Sat, 8 Sep 2018 12:58:08 -0700
Subject: [PATCH] fix openssl NewService definition

---
 src/ssl/openssl.rs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/ssl/openssl.rs b/src/ssl/openssl.rs
index f611e40ea..025d074a3 100644
--- a/src/ssl/openssl.rs
+++ b/src/ssl/openssl.rs
@@ -1,4 +1,3 @@
-use std::io;
 use std::marker::PhantomData;
 
 use futures::{future::ok, future::FutureResult, Async, Future, Poll};
@@ -44,7 +43,7 @@ impl<T: AsyncRead + AsyncWrite> NewService for OpensslAcceptor<T> {
     type Error = Error;
     type Service = OpensslAcceptorService<T>;
     type InitError = ();
-    type Future = FutureResult<Self::Service, io::Error>;
+    type Future = FutureResult<Self::Service, Self::InitError>;
 
     fn new_service(&self) -> Self::Future {
         MAX_CONN_COUNTER.with(|conns| {