Bugfix: Fix builtin error pointing to the wrong part (#3467)
This commit is contained in:
parent
c5eed02415
commit
9a88d5f011
1 changed files with 4 additions and 2 deletions
|
@ -85,8 +85,10 @@ macro_rules! impl_builtins {
|
||||||
)*
|
)*
|
||||||
|
|
||||||
$(
|
$(
|
||||||
if let Ok((i, x)) = $name($i){
|
match $name($i){
|
||||||
return Ok((i,x))
|
Ok((i,x)) => return Ok((i,x)),
|
||||||
|
Err(Err::Failure(x)) => return Err(Err::Failure(x)),
|
||||||
|
_ => {}
|
||||||
}
|
}
|
||||||
)*
|
)*
|
||||||
($i,())
|
($i,())
|
||||||
|
|
Loading…
Reference in a new issue