updated serde to version 1.0

This commit is contained in:
debris
2017-07-06 11:36:15 +02:00
parent cc718bb108
commit 61d8f90530
116 changed files with 553 additions and 662 deletions

View File

@@ -25,7 +25,7 @@ use ws::ws::{
Result as WsResult,
};
use serde::Deserialize;
use serde::de::DeserializeOwned;
use serde_json::{
self as json,
Value as JsonValue,
@@ -247,7 +247,7 @@ impl Rpc {
pub fn request<T>(
&mut self, method: &'static str, params: Vec<JsonValue>
) -> BoxFuture<Result<T, RpcError>, Canceled>
where T: Deserialize + Send + Sized {
where T: DeserializeOwned + Send + Sized {
let (c, p) = oneshot::<Result<JsonValue, RpcError>>();