From ec6f1f84e222b591f92ddef5b33bf72fdfa9ed25 Mon Sep 17 00:00:00 2001 From: Pi Lanningham Date: Mon, 17 Feb 2025 15:39:24 -0500 Subject: [PATCH] fix: formatting --- crates/aiken-lang/src/test_framework.rs | 14 +++++--------- crates/uplc/src/machine/runtime.rs | 4 +++- 2 files changed, 8 insertions(+), 10 deletions(-) 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},