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:
@ -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)
|
||||
|
@ -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]
|
||||
|
@ -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="../../" }
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user