diff --git a/crates/aiken-lang/src/test_framework.rs b/crates/aiken-lang/src/test_framework.rs index e5bc05d1..ab23ec0a 100644 --- a/crates/aiken-lang/src/test_framework.rs +++ b/crates/aiken-lang/src/test_framework.rs @@ -338,16 +338,11 @@ impl PropertyTest { ) { Ok(None) => (Vec::new(), Ok(None), n), Ok(Some(counterexample)) => ( - self.eval(&counterexample.value, plutus_version) - .logs(), + self.eval(&counterexample.value, plutus_version).logs(), Ok(Some(counterexample.value)), n - remaining, ), - Err(FuzzerError { logs, uplc_error }) => ( - logs, - Err(uplc_error), - n - remaining + 1, - ), + Err(FuzzerError { logs, uplc_error }) => (logs, Err(uplc_error), n - remaining + 1), }; PropertyTestResult { @@ -495,8 +490,9 @@ pub enum BenchmarkError { impl BenchmarkError { pub fn logs(&self) -> &[String] { match self { - BenchmarkError::SamplerError { logs, .. } - | BenchmarkError::BenchError { logs, .. } => logs.as_slice(), + BenchmarkError::SamplerError { logs, .. } | BenchmarkError::BenchError { logs, .. } => { + logs.as_slice() + } } } } diff --git a/crates/uplc/src/machine/runtime.rs b/crates/uplc/src/machine/runtime.rs index 823069f6..05ad3c4a 100644 --- a/crates/uplc/src/machine/runtime.rs +++ b/crates/uplc/src/machine/runtime.rs @@ -1,5 +1,7 @@ use super::{ - cost_model::{BuiltinCosts, ExBudget}, value::{from_pallas_bigint, to_pallas_bigint}, Error, Trace, Value + cost_model::{BuiltinCosts, ExBudget}, + value::{from_pallas_bigint, to_pallas_bigint}, + Error, Trace, Value, }; use crate::{ ast::{Constant, Data, Type},