Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Sep 8, 2023
1 parent 21ddf2d commit c74d1ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vm/src/calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,10 @@ mod tests {
let result = match call_query(&mut instance, &mock_env(), msg.as_bytes()) {
Ok(ContractResult::Ok(r)) => format!("{:?}", from_slice::<Value>(&r).unwrap()),
Err(VmError::RuntimeErr { msg }) => msg,
e => panic!("unexpected error: {:?}", e),
e => panic!("unexpected error: {e:?}"),
};
// add the result to the hash
hasher.update(format!("{}{}{}", instr, seed, result).as_bytes());
hasher.update(format!("{instr}{seed}{result}").as_bytes());
}
}
let hash = Digest::finalize(hasher);
Expand Down

0 comments on commit c74d1ae

Please sign in to comment.