diff --git a/crates/pop-drink/src/lib.rs b/crates/pop-drink/src/lib.rs index 863b962..9303d02 100644 --- a/crates/pop-drink/src/lib.rs +++ b/crates/pop-drink/src/lib.rs @@ -180,9 +180,8 @@ where { match session.call::(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()