chore: Fix lint warnings (#166)
This commit is contained in:
parent
22b74673f7
commit
ea2368bf49
4 changed files with 19 additions and 12 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue