diff --git a/src/cmd/build.rs b/src/cmd/build.rs index ccc1d33dc279e8f54afbfdf6b4cb9f9335d90cbe..c10b48ba1fe17cb6dc0091dae5cdec6366f74ef2 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -550,7 +550,7 @@ fn optimize_wasm( "{}-opt.wasm", crate_metadata.contract_artifact_name )); - let _ = do_optimization( + do_optimization( crate_metadata.dest_wasm.as_os_str(), dest_optimized.as_os_str(), optimization_passes, @@ -612,7 +612,7 @@ fn do_optimization( .as_path(); log::info!("Path to wasm-opt executable: {}", wasm_opt_path.display()); - let _ = check_wasm_opt_version_compatibility(wasm_opt_path)?; + check_wasm_opt_version_compatibility(wasm_opt_path)?; log::info!( "Optimization level passed to wasm-opt: {}",