1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +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,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)
}
}