diff options
| author | Martin Haug <mhaug@live.de> | 2022-02-28 14:36:02 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2022-02-28 15:41:38 +0100 |
| commit | 4f09233bdae8f79ebafed43e8135f1a0285bd370 (patch) | |
| tree | ae79152aba0a7b863be3574dd16d5d12e1e311df /src/eval/func.rs | |
| parent | 9fde38a6f82106e4c3a47f1bc34343650d8aad5b (diff) | |
Enable join collection for control flow constructs
Diffstat (limited to 'src/eval/func.rs')
| -rw-r--r-- | src/eval/func.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval/func.rs b/src/eval/func.rs index a7f2a209..451dcbbb 100644 --- a/src/eval/func.rs +++ b/src/eval/func.rs @@ -139,7 +139,7 @@ impl Closure { // Evaluate the body. let value = match self.body.eval(ctx, &mut scp) { - Err(Control::Return(value, _)) => value.unwrap_or_default(), + Err(Control::Return(value, _, _)) => value, other => other?, }; |
