diff --git a/pallas-addresses/src/lib.rs b/pallas-addresses/src/lib.rs index 13271cd..42d013c 100644 --- a/pallas-addresses/src/lib.rs +++ b/pallas-addresses/src/lib.rs @@ -143,7 +143,7 @@ impl ShelleyPaymentPart { Self::Script(x) => x.to_vec(), } } - + pub fn to_hex(&self) -> String { let bytes = self.to_vec(); hex::encode(bytes) @@ -152,7 +152,7 @@ impl ShelleyPaymentPart { pub fn to_bech32(&self) -> Result { let hrp = match self { Self::Key(_) => "addr_vkh", - Self::Script(_) => "addr_shared_vkh" + Self::Script(_) => "addr_shared_vkh", }; let bytes = self.to_vec(); encode_bech32(&bytes, hrp) @@ -205,7 +205,7 @@ impl ShelleyDelegationPart { Self::Null => vec![], } } - + pub fn to_hex(&self) -> String { let bytes = self.to_vec(); hex::encode(bytes) diff --git a/pallas-primitives/src/alonzo/model.rs b/pallas-primitives/src/alonzo/model.rs index 3fe68e6..0aae38a 100644 --- a/pallas-primitives/src/alonzo/model.rs +++ b/pallas-primitives/src/alonzo/model.rs @@ -1412,7 +1412,7 @@ impl<'b> From> for Block { .to_vec() .into_iter() .map(|x| x.unwrap()) - .map(|x| WitnessSet::from(x)) + .map(WitnessSet::from) .collect(), auxiliary_data_set: x .auxiliary_data_set diff --git a/pallas-primitives/src/babbage/model.rs b/pallas-primitives/src/babbage/model.rs index 268231f..5a20425 100644 --- a/pallas-primitives/src/babbage/model.rs +++ b/pallas-primitives/src/babbage/model.rs @@ -609,7 +609,7 @@ impl<'b> From> for Block { .to_vec() .into_iter() .map(|x| x.unwrap()) - .map(|x| WitnessSet::from(x)) + .map(WitnessSet::from) .collect(), auxiliary_data_set: x .auxiliary_data_set diff --git a/pallas-traverse/src/hashes.rs b/pallas-traverse/src/hashes.rs index ce676e2..d444322 100644 --- a/pallas-traverse/src/hashes.rs +++ b/pallas-traverse/src/hashes.rs @@ -81,7 +81,7 @@ impl ComputeHash<32> for alonzo::PlutusData { impl OriginalHash<32> for KeepRaw<'_, alonzo::PlutusData> { fn original_hash(&self) -> Hash<32> { - Hasher::<256>::hash(&self.raw_cbor()) + Hasher::<256>::hash(self.raw_cbor()) } }