style: drop Instruction suffix from instructions
This commit is contained in:
parent
c0dd533d81
commit
ccbccfb11b
5 changed files with 15 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
use rpl::instructions::{FilterInstruction, Instruction};
|
||||
use rpl::instructions::{Filter, Instruction};
|
||||
|
||||
use crate::value::Dynamic;
|
||||
mod instructions;
|
||||
|
@ -25,12 +25,12 @@ impl crate::Executor for Executor {
|
|||
Instruction::Blend(_) => todo!(),
|
||||
Instruction::Noise(_) => todo!(),
|
||||
Instruction::Filter(filter_instruction) => match filter_instruction {
|
||||
FilterInstruction::Invert => Some(Dynamic::Image(
|
||||
instructions::filters::invert::invert(match input {
|
||||
Filter::Invert => Some(Dynamic::Image(instructions::filters::invert::invert(
|
||||
match input {
|
||||
Some(Dynamic::Image(img)) => img,
|
||||
_ => panic!("invalid value type for invert"),
|
||||
}),
|
||||
)),
|
||||
},
|
||||
))),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue