Split Payload and PayloadType

This commit is contained in:
Werner
2021-12-26 18:44:17 -03:00
parent 96abcde56b
commit 5b7fc61723
5 changed files with 23 additions and 15 deletions

View File

@ -1,8 +1,7 @@
use crate::Instruction;
use crate::Instructions::*;
use crate::Operations::*;
use crate::Payload::PayloadType;
use crate::Types::Byte;
use crate::{Instruction, PayloadType};
use std::collections::HashMap;
pub struct InstructionTable {
@ -19,6 +18,7 @@ impl Default for InstructionTable {
impl InstructionTable {
#[inline]
#[rustfmt::skip]
pub fn New() -> Self {
let mut table = InstructionTable::default();