pkstrings: Use converted PKString result in Display

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-11-15 16:14:50 +01:00
parent 99043c9dd2
commit 6e32a71c0e
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -136,7 +136,7 @@ impl Deref for PKString {
impl fmt::Display for PKString { impl fmt::Display for PKString {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:?}", &self.0) write!(f, "{:?}", String::from(self))
} }
} }