From 24a2f41c9f45f49d5fe560b7a0733308c853a3f1 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 12 Mar 2020 14:51:18 +0100 Subject: [PATCH] chore(interface-types) Simplify code. --- src/interpreter/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/interpreter/mod.rs b/src/interpreter/mod.rs index 122c482..d5f0105 100644 --- a/src/interpreter/mod.rs +++ b/src/interpreter/mod.rs @@ -166,10 +166,7 @@ where }; for executable_instruction in self.iter() { - match executable_instruction(&mut runtime) { - Ok(_) => continue, - Err(error) => return Err(error), - } + executable_instruction(&mut runtime)?; } Ok(runtime.stack)