chore: Fix lint warnings (#166)

This commit is contained in:
Santiago Carmuega 2022-08-07 12:18:43 -03:00 committed by GitHub
parent 22b74673f7
commit ea2368bf49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 12 deletions

View file

@ -1,6 +1,6 @@
use crate::ToHash;
use super::{Header, PlutusV2Script, TransactionBody, DatumOption};
use super::{DatumOption, Header, PlutusV2Script, TransactionBody};
use pallas_codec::utils::KeepRaw;
use pallas_crypto::hash::{Hash, Hasher};
@ -32,7 +32,7 @@ impl ToHash<32> for DatumOption {
fn to_hash(&self) -> Hash<32> {
match self {
DatumOption::Hash(hash) => *hash,
DatumOption::Data(data) => data.to_hash()
DatumOption::Data(data) => data.to_hash(),
}
}
}