Fix compile warning for some targets (#29258)

* Fix compile warning for some targets

* Reduce redundant code
This commit is contained in:
Brennan Watt 2022-12-14 11:40:13 -08:00 committed by GitHub
parent d8f8dea9e4
commit 830ccb9bff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -153,6 +153,7 @@ fn create_executor_from_bytes(
create_executor_metrics.load_elf_us = load_elf_time.as_us();
let executable = executable?;
let mut verify_code_time = Measure::start("verify_code_time");
#[allow(unused_mut)]
let mut verified_executable =
VerifiedExecutable::<RequisiteVerifier, InvokeContext>::from_executable(executable)
.map_err(|err| {

View File

@ -257,6 +257,7 @@ before execting it in the virtual machine.",
}
.unwrap();
#[allow(unused_mut)]
let mut verified_executable =
VerifiedExecutable::<RequisiteVerifier, InvokeContext>::from_executable(executable)
.map_err(|err| format!("Executable verifier failed: {err:?}"))