From 6e32a71c0e4616974d076ba0898c3331d3448f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 15 Nov 2021 16:14:50 +0100 Subject: [PATCH] pkstrings: Use converted PKString result in Display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- pkstrings/src/pkstring.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkstrings/src/pkstring.rs b/pkstrings/src/pkstring.rs index 9441d6e..7f97121 100644 --- a/pkstrings/src/pkstring.rs +++ b/pkstrings/src/pkstring.rs @@ -136,7 +136,7 @@ impl Deref for PKString { impl fmt::Display for PKString { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{:?}", &self.0) + write!(f, "{:?}", String::from(self)) } }