mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-05 05:01:21 +00:00
Merge pull request #1215 from Hywan/fix-interface-types-dbg
fix(interface-types) Remove a `dbg!` macro
This commit is contained in:
commit
8faac62bc0
@ -61,7 +61,7 @@ fn uleb<'input, E: ParseError<&'input [u8]>>(input: &'input [u8]) -> IResult<&'i
|
|||||||
return Err(Err::Error(make_error(input, ErrorKind::Eof)));
|
return Err(Err::Error(make_error(input, ErrorKind::Eof)));
|
||||||
}
|
}
|
||||||
|
|
||||||
let (output, bytes) = match dbg!(input.iter().position(|&byte| byte & 0x80 == 0)) {
|
let (output, bytes) = match input.iter().position(|&byte| byte & 0x80 == 0) {
|
||||||
Some(length) if length <= 8 => (&input[length + 1..], &input[..=length]),
|
Some(length) if length <= 8 => (&input[length + 1..], &input[..=length]),
|
||||||
Some(_) => return Err(Err::Error(make_error(input, ErrorKind::TooLarge))),
|
Some(_) => return Err(Err::Error(make_error(input, ErrorKind::TooLarge))),
|
||||||
None => return Err(Err::Error(make_error(input, ErrorKind::Eof))),
|
None => return Err(Err::Error(make_error(input, ErrorKind::Eof))),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user