chore: Fix lint warnings (#190)
* apply code formatting * fix clippy warnings
This commit is contained in:
parent
2495903434
commit
6451da1e72
4 changed files with 6 additions and 6 deletions
|
|
@ -152,7 +152,7 @@ impl ShelleyPaymentPart {
|
||||||
pub fn to_bech32(&self) -> Result<String, Error> {
|
pub fn to_bech32(&self) -> Result<String, Error> {
|
||||||
let hrp = match self {
|
let hrp = match self {
|
||||||
Self::Key(_) => "addr_vkh",
|
Self::Key(_) => "addr_vkh",
|
||||||
Self::Script(_) => "addr_shared_vkh"
|
Self::Script(_) => "addr_shared_vkh",
|
||||||
};
|
};
|
||||||
let bytes = self.to_vec();
|
let bytes = self.to_vec();
|
||||||
encode_bech32(&bytes, hrp)
|
encode_bech32(&bytes, hrp)
|
||||||
|
|
|
||||||
|
|
@ -1412,7 +1412,7 @@ impl<'b> From<MintedBlock<'b>> for Block {
|
||||||
.to_vec()
|
.to_vec()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|x| x.unwrap())
|
.map(|x| x.unwrap())
|
||||||
.map(|x| WitnessSet::from(x))
|
.map(WitnessSet::from)
|
||||||
.collect(),
|
.collect(),
|
||||||
auxiliary_data_set: x
|
auxiliary_data_set: x
|
||||||
.auxiliary_data_set
|
.auxiliary_data_set
|
||||||
|
|
|
||||||
|
|
@ -609,7 +609,7 @@ impl<'b> From<MintedBlock<'b>> for Block {
|
||||||
.to_vec()
|
.to_vec()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|x| x.unwrap())
|
.map(|x| x.unwrap())
|
||||||
.map(|x| WitnessSet::from(x))
|
.map(WitnessSet::from)
|
||||||
.collect(),
|
.collect(),
|
||||||
auxiliary_data_set: x
|
auxiliary_data_set: x
|
||||||
.auxiliary_data_set
|
.auxiliary_data_set
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ impl ComputeHash<32> for alonzo::PlutusData {
|
||||||
|
|
||||||
impl OriginalHash<32> for KeepRaw<'_, alonzo::PlutusData> {
|
impl OriginalHash<32> for KeepRaw<'_, alonzo::PlutusData> {
|
||||||
fn original_hash(&self) -> Hash<32> {
|
fn original_hash(&self) -> Hash<32> {
|
||||||
Hasher::<256>::hash(&self.raw_cbor())
|
Hasher::<256>::hash(self.raw_cbor())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue