Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Nov 7, 2024
1 parent 2dbb68e commit 7dcf51b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/pop-drink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,8 @@ where
{
match session.call::<String, ()>(func_name, &input, endowment) {
// If the call is reverted, decode the error into the specified error type.
Err(SessionError::CallReverted(error)) => {
Err(E::decode(&mut &error[2..]).expect("Decoding failed"))
},
Err(SessionError::CallReverted(error)) =>
Err(E::decode(&mut &error[2..]).expect("Decoding failed")),
// If the call is successful, decode the last returned value.
Ok(_) => Ok(session
.record()
Expand Down

0 comments on commit 7dcf51b

Please sign in to comment.