From 0a488763ae7616c39e229d5d757c1a91c2d389e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20G=C3=B6rtler?= Date: Tue, 10 Jan 2023 14:25:38 +0100 Subject: [PATCH] chore(clippy): fix `Display` formatting (#1026) --- src/inx/raw.rs | 4 ++-- src/types/ledger/output_metadata.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inx/raw.rs b/src/inx/raw.rs index 14201690c..d400c1156 100644 --- a/src/inx/raw.rs +++ b/src/inx/raw.rs @@ -26,14 +26,14 @@ impl RawMessage { /// [`ProtocolParameters`](iota_types::block::protocol::ProtocolParameters) to verify the bytes. pub fn inner(self, visitor: &T::UnpackVisitor) -> Result { let unpacked = - T::unpack_verified(self.data, visitor).map_err(|e| InxError::InvalidRawBytes(format!("{:?}", e)))?; + T::unpack_verified(self.data, visitor).map_err(|e| InxError::InvalidRawBytes(format!("{e:?}")))?; Ok(unpacked) } /// Unpack the raw data into a type `T` without performing syntactic or semantic validation. This is useful if the /// type is guaranteed to be well-formed, for example when it was transmitted via the INX interface. pub fn inner_unverified(self) -> Result { - let unpacked = T::unpack_unverified(self.data).map_err(|e| InxError::InvalidRawBytes(format!("{:?}", e)))?; + let unpacked = T::unpack_unverified(self.data).map_err(|e| InxError::InvalidRawBytes(format!("{e:?}")))?; Ok(unpacked) } } diff --git a/src/types/ledger/output_metadata.rs b/src/types/ledger/output_metadata.rs index cc041b463..98c91d43e 100644 --- a/src/types/ledger/output_metadata.rs +++ b/src/types/ledger/output_metadata.rs @@ -96,7 +96,7 @@ mod inx { fn try_from(value: ::inx::proto::LedgerOutput) -> Result { let data = maybe_missing!(value.output).data; let bee_output = iota_types::block::output::Output::unpack_unverified(data) - .map_err(|e| InxError::InvalidRawBytes(format!("{:?}", e)))?; + .map_err(|e| InxError::InvalidRawBytes(format!("{e:?}")))?; Ok(Self { rent_structure: compute_rent_structure(&bee_output),