cargo fmt

This commit is contained in:
Pi Lanningham 2023-07-01 14:17:55 -04:00 committed by Lucas
parent 4a8cb72708
commit c10f0e53df
2 changed files with 6 additions and 8 deletions

View File

@ -27,9 +27,10 @@ use indexmap::IndexMap;
use miette::NamedSource;
use options::{CodeGenMode, Options};
use package_name::PackageName;
use pallas::ledger::{addresses::{
Address, Network, ShelleyAddress, ShelleyDelegationPart, StakePayload,
}, primitives::babbage::{self as cardano, PolicyId}};
use pallas::ledger::{
addresses::{Address, Network, ShelleyAddress, ShelleyDelegationPart, StakePayload},
primitives::babbage::{self as cardano, PolicyId},
};
use pallas_traverse::ComputeHash;
use script::{EvalHint, EvalInfo, Script};
use std::{
@ -386,10 +387,7 @@ where
})
}
pub fn policy(
&self,
title: Option<&String>
) -> Result<PolicyId, Error> {
pub fn policy(&self, title: Option<&String>) -> Result<PolicyId, Error> {
// Read blueprint
let blueprint = File::open(self.blueprint_path())
.map_err(|_| blueprint::error::Error::InvalidOrMissingFile)?;

View File

@ -1,7 +1,7 @@
pub mod address;
pub mod policy;
pub mod apply;
pub mod convert;
pub mod policy;
use clap::Subcommand;