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:
@ -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