Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Feb 17, 2025
1 parent fa88948 commit 7c163bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 5 additions & 9 deletions crates/aiken-lang/src/test_framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion crates/uplc/src/machine/runtime.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down

0 comments on commit 7c163bd

Please sign in to comment.