mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2026-01-16 16:43:05 +01:00
fix: take care of clippy warnings and add test image
This commit is contained in:
parent
24ebca3e8d
commit
816602fb2e
7 changed files with 37 additions and 36 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use rpl::instructions::Instruction;
|
||||
use value::DynamicValue;
|
||||
use value::Dynamic;
|
||||
|
||||
mod debug;
|
||||
mod value;
|
||||
|
|
@ -17,14 +17,14 @@ pub enum Executors {
|
|||
}
|
||||
|
||||
trait Executor {
|
||||
fn execute(instruction: Instruction, input: Option<DynamicValue>) -> Option<DynamicValue>;
|
||||
fn execute(instruction: Instruction, input: Option<Dynamic>) -> Option<Dynamic>;
|
||||
}
|
||||
|
||||
pub fn execute_all(instructions: Vec<Instruction>) {
|
||||
let mut tmp = None;
|
||||
|
||||
for instruction in instructions {
|
||||
tmp = debug::DebugExecutor::execute(instruction, tmp);
|
||||
tmp = debug::Executor::execute(instruction, tmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue