Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jun 27, 2023
1 parent 34ad338 commit 6d5f98b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/vm/src/calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,8 @@ where
from_slice(&data, deserialization_limits::RESULT_QUERY)?;
// Ensure query response is valid JSON
if let ContractResult::Ok(binary_response) = &result {
serde_json::from_slice::<serde_json::Value>(binary_response.as_slice()).map_err(|e| {
VmError::generic_err(format!("Query response must be valid JSON. {e}"))
})?;
serde_json::from_slice::<serde_json::Value>(binary_response.as_slice())
.map_err(|e| VmError::generic_err(format!("Query response must be valid JSON. {e}")))?;
}

Ok(result)
Expand Down
4 changes: 1 addition & 3 deletions packages/vm/src/modules/file_system_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ fn target_id(target: &Target) -> String {

/// The path to the latest version of the modules.
fn modules_path(base_path: &Path, wasmer_module_version: u32, target: &Target) -> PathBuf {
let version_dir = format!(
"{MODULE_SERIALIZATION_VERSION}-wasmer{wasmer_module_version}"
);
let version_dir = format!("{MODULE_SERIALIZATION_VERSION}-wasmer{wasmer_module_version}");
let target_dir = target_id(target);
base_path.join(version_dir).join(target_dir)
}
Expand Down

0 comments on commit 6d5f98b

Please sign in to comment.