mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-24 14:11:32 +00:00
chore(decoders) Simplify code.
This commit is contained in:
@ -400,10 +400,8 @@ fn adapters<'input, E: ParseError<&'input [u8]>>(
|
||||
|
||||
/// Parse a list of forwarded exports.
|
||||
fn forwards<'input, E: ParseError<&'input [u8]>>(
|
||||
input: &'input [u8],
|
||||
mut input: &'input [u8],
|
||||
) -> IResult<&'input [u8], Vec<Forward>, E> {
|
||||
let mut input = input;
|
||||
|
||||
consume!((input, number_of_forwards) = uleb(input)?);
|
||||
|
||||
let mut forwards = Vec::with_capacity(number_of_forwards as usize);
|
||||
|
Reference in New Issue
Block a user