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

View File

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