mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 23:31:33 +00:00
Address edition-2018 idioms. (#929)
This commit is contained in:
committed by
Pierre Krieger
parent
21810e46bd
commit
eeed66707b
@ -197,7 +197,7 @@ pub enum KademliaHandlerQueryErr {
|
||||
}
|
||||
|
||||
impl fmt::Display for KademliaHandlerQueryErr {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
KademliaHandlerQueryErr::Upgrade(err) => {
|
||||
write!(f, "Error while performing Kademlia query: {}", err)
|
||||
|
Reference in New Issue
Block a user