Bugfix: Fix builtin error pointing to the wrong part (#3467)

This commit is contained in:
Mees Delzenne 2024-02-12 12:16:38 +01:00 committed by GitHub
parent c5eed02415
commit 9a88d5f011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,())