From b9d5200448b3c090ca89ba51ab387e1a18e3d577 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Mon, 22 Mar 2021 13:42:32 +0100 Subject: [PATCH] Access Display and Formatter with fmt:: like in other places --- src/util/address.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/address.rs b/src/util/address.rs index 2c26e7cf..1a1f83f7 100644 --- a/src/util/address.rs +++ b/src/util/address.rs @@ -36,7 +36,7 @@ //! let address = Address::p2pkh(&public_key, Network::Bitcoin); //! ``` -use std::fmt::{self, Display, Formatter}; +use std::fmt; use std::str::FromStr; use std::error; @@ -354,8 +354,8 @@ impl Address { } } -impl Display for Address { - fn fmt(&self, fmt: &mut Formatter) -> fmt::Result { +impl fmt::Display for Address { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { match self.payload { Payload::PubkeyHash(ref hash) => { let mut prefixed = [0; 21];