Fix compile warning for some targets (#29258)
* Fix compile warning for some targets * Reduce redundant code
This commit is contained in:
parent
d8f8dea9e4
commit
830ccb9bff
|
@ -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| {
|
||||
|
|
|
@ -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:?}"))
|
||||
|
|
Loading…
Reference in New Issue