1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

update all packages to use actix-web v3 (#94)

This commit is contained in:
Rob Ede
2020-09-11 16:26:15 +01:00
committed by GitHub
parent 7e6bdf2eb2
commit bad5f32a68
22 changed files with 73 additions and 70 deletions

View File

@ -1,7 +1,7 @@
# Changes
## unreleased
## Unreleased - 2020-xx-xx
* Update `actix-web` dependency to 3.0.0.
* Minimum supported Rust version(MSRV) is now 1.42.0 to use `matches!` macro.
## 0.6.0-alpha.1 (2020-07-06)

View File

@ -16,13 +16,13 @@ name = "actix_protobuf"
path = "src/lib.rs"
[dependencies]
actix-web = { version = "3.0.0", default_features = false }
actix-rt = "1.1.1"
bytes = "0.5"
futures-util = { version = "0.3.5", default-features = false }
derive_more = "0.99"
actix-rt = "1"
actix-web = { version = "3.0.0-alpha.3", default_features = false }
prost = "0.6.0"
[dev-dependencies]

View File

@ -5,12 +5,12 @@ edition = "2018"
authors = ["kingxsp <jin.hb.zh@outlook.com>", "Yuki Okushi <huyuumi.dev@gmail.com>"]
[dependencies]
actix-web = "3.0.0"
actix-rt = "1"
actix-protobuf = { path = "../../" }
bytes = "0.5"
env_logger = "*"
prost = "0.6.0"
prost-derive = "0.6.0"
actix-rt = "1"
actix-web = "3.0.0-alpha.3"
actix-protobuf = { path="../../" }

View File

@ -1,3 +1,5 @@
#![deny(rust_2018_idioms)]
use derive_more::Display;
use std::fmt;
use std::future::Future;
@ -78,7 +80,7 @@ impl<T: Message> fmt::Debug for ProtoBuf<T>
where
T: fmt::Debug,
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "ProtoBuf: {:?}", self.0)
}
}
@ -87,7 +89,7 @@ impl<T: Message> fmt::Display for ProtoBuf<T>
where
T: fmt::Display,
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Display::fmt(&self.0, f)
}
}