fix: take care of clippy warnings and add test image

This commit is contained in:
MultisampledNight 2024-01-11 01:36:47 +01:00
commit 816602fb2e
No known key found for this signature in database
GPG key ID: 6D525AA147CBDAE2
7 changed files with 37 additions and 36 deletions

View file

@ -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);
}
}