Update to serde 1.0 and bincode 0.8 (#149)

This commit is contained in:
Tim
2017-05-05 22:16:44 -07:00
committed by GitHub
parent 7dbfe07c97
commit 21e8883877
12 changed files with 80 additions and 67 deletions

View File

@@ -4,7 +4,8 @@ use futures::{Future, future as futures};
use futures::sync::oneshot;
#[cfg(feature = "tls")]
use native_tls_inner::TlsAcceptor;
use serde::{Deserialize, Serialize};
use serde::Serialize;
use serde::de::DeserializeOwned;
use std::fmt;
use std::io;
use std::net::SocketAddr;
@@ -110,7 +111,7 @@ pub fn listen<S, Req, Resp, E>(new_service: S,
<S::Instance as Service>::Future: Send + 'static,
S::Response: Send,
S::Error: Send,
Req: Deserialize + 'static,
Req: DeserializeOwned + 'static,
Resp: Serialize + 'static,
E: Serialize + 'static
{