Skip to content

Commit

Permalink
chore: rust rover error
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Sep 14, 2023
1 parent 7b915b7 commit 1dea348
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions crates/aiken/src/cmd/uplc/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct Args {
#[clap(short, long)]
cbor: bool,

/// Arguments to pass to the uplc program
/// Arguments to pass to the UPLC program
args: Vec<String>,
}

Expand Down Expand Up @@ -54,10 +54,9 @@ pub fn exec(
};

for arg in args {
let term: Term<NamedDeBruijn> = parser::term(&arg)
.into_diagnostic()?
.try_into()
.into_diagnostic()?;
let term = parser::term(&arg).into_diagnostic()?;

let term = Term::<NamedDeBruijn>::try_from(term).into_diagnostic()?;

program = program.apply_term(&term);
}
Expand All @@ -71,7 +70,7 @@ pub fn exec(

match eval_result.result() {
Ok(term) => {
let term: Term<Name> = term.try_into().into_diagnostic()?;
let term = Term::<Name>::try_from(term).into_diagnostic()?;

let output = json!({
"result": term.to_pretty(),
Expand Down

0 comments on commit 1dea348

Please sign in to comment.