mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-15 01:41:21 +00:00
Add updates from feedback
This commit is contained in:
@ -213,15 +213,8 @@ impl FuncResolverBuilder {
|
||||
let compiled_functions = compiled_functions;
|
||||
let mut total_size = 0;
|
||||
// We separate into two iterators, one iterable and one into iterable
|
||||
let (code_bufs, sinks): (
|
||||
Vec<Vec<u8>>,
|
||||
Vec<(
|
||||
LocalFuncIndex,
|
||||
Option<(CompiledFunctionData, ValueLabelsRanges, Vec<Option<i32>>)>,
|
||||
RelocSink,
|
||||
LocalTrapSink,
|
||||
)>,
|
||||
) = compiled_functions.into_iter().unzip();
|
||||
let (code_bufs, sinks): (Vec<Vec<u8>>, Vec<CompileMetadata>) =
|
||||
compiled_functions.into_iter().unzip();
|
||||
for (code_buf, (_, debug_info, reloc_sink, mut local_trap_sink)) in
|
||||
code_bufs.iter().zip(sinks.into_iter())
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ use std::sync::Arc;
|
||||
///
|
||||
/// The debugger will wait for this function to be called and then take
|
||||
/// control to read the data we prepared.
|
||||
// implementation of this function is from wasmtime and is licensed under
|
||||
// Implementation of this function is derived from wasmtime and is licensed under
|
||||
// the Apache 2.0 license. See ATTRIBUTIONS.md for full license and more
|
||||
// information.
|
||||
#[no_mangle]
|
||||
|
@ -79,7 +79,7 @@ where
|
||||
self.elems
|
||||
}
|
||||
|
||||
/// Iterate over the values of the map in order
|
||||
/// Iterate over the values of the map in order.
|
||||
pub fn values(&self) -> impl Iterator<Item = &V> {
|
||||
self.elems.iter()
|
||||
}
|
||||
|
Reference in New Issue
Block a user