Skip to content

Commit 25ead94

Browse files
committed
chore: fmt
1 parent 6c7ddc5 commit 25ead94

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

clarity/src/vm/clarity_wasm.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,9 @@ pub fn call_function<'a, 'b, 'c>(
564564

565565
// Call the function
566566
func.call(&mut store, &wasm_args, &mut results)
567-
.map_err(|e| error_mapping::resolve_error(e, instance, &mut store, &epoch, &clarity_version))?;
567+
.map_err(|e| {
568+
error_mapping::resolve_error(e, instance, &mut store, &epoch, &clarity_version)
569+
})?;
568570

569571
// If the function returns a value, translate it into a Clarity `Value`
570572
wasm_to_clarity_value(&return_type, 0, &results, memory, &mut &mut store, epoch)
@@ -7876,7 +7878,8 @@ mod error_mapping {
78767878
Error::Runtime(RuntimeErrorType::UnwrapFailure, Some(Vec::new()))
78777879
}
78787880
ErrorMap::ShortReturnAssertionFailure => {
7879-
let clarity_val = short_return_value(&instance, &mut store, epoch_id, clarity_version);
7881+
let clarity_val =
7882+
short_return_value(&instance, &mut store, epoch_id, clarity_version);
78807883
Error::ShortReturn(ShortReturnType::AssertionFailed(clarity_val))
78817884
}
78827885
ErrorMap::ArithmeticPowError => Error::Runtime(
@@ -7903,7 +7906,8 @@ mod error_mapping {
79037906
Error::Unchecked(CheckErrors::NameAlreadyUsed(arg_name))
79047907
}
79057908
ErrorMap::ShortReturnExpectedValueResponse => {
7906-
let clarity_val = short_return_value(&instance, &mut store, epoch_id, clarity_version);
7909+
let clarity_val =
7910+
short_return_value(&instance, &mut store, epoch_id, clarity_version);
79077911
Error::ShortReturn(ShortReturnType::ExpectedValue(Value::Response(
79087912
ResponseData {
79097913
committed: false,
@@ -7917,7 +7921,8 @@ mod error_mapping {
79177921
)))
79187922
}
79197923
ErrorMap::ShortReturnExpectedValue => {
7920-
let clarity_val = short_return_value(&instance, &mut store, epoch_id, clarity_version);
7924+
let clarity_val =
7925+
short_return_value(&instance, &mut store, epoch_id, clarity_version);
79217926
Error::ShortReturn(ShortReturnType::ExpectedValue(clarity_val))
79227927
}
79237928
_ => panic!("Runtime error code {} not supported", runtime_error_code),

0 commit comments

Comments
 (0)