From 8f7f190783bbdc93c74c313c4e8ba3056e6d03d4 Mon Sep 17 00:00:00 2001 From: Kurian Thampy Date: Tue, 1 Oct 2019 13:54:26 +0530 Subject: [PATCH 1/2] Upgrade to `prost-0.5.0` and `prost-derive-0.5.0` --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 67475cf8e..a7220591d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,11 +26,11 @@ derive_more = "0.14" actix = "0.8.1" actix-web = "1.0.0-rc" -prost = "0.4" +prost = "0.5.0" [dev-dependencies] http = "^0.1" -prost-derive = "^0.4" +prost-derive = "0.5.0" [workspace] members = [ From 62e9d32b3efca68d5fcf0fea5c53aacb5fe0358a Mon Sep 17 00:00:00 2001 From: Kurian Thampy Date: Tue, 1 Oct 2019 13:58:06 +0530 Subject: [PATCH 2/2] Changed to `Box>` to remove warning --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5e23d5b05..f8bb3317a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -125,7 +125,7 @@ where { type Config = ProtoBufConfig; type Error = Error; - type Future = Box>; + type Future = Box>; #[inline] fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future { @@ -164,7 +164,7 @@ pub struct ProtoBufMessage { length: Option, stream: Option, err: Option, - fut: Option>>, + fut: Option>>, } impl ProtoBufMessage {