Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WillLillis committed Nov 10, 2023
1 parent 6905886 commit 729236e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ use serde::{Deserialize, Serialize};
use std::{collections::HashMap, fmt::Display};
use strum_macros::{AsRefStr, Display, EnumString};

// Define a trait for types we display on Hover Requests so we can avoid some
// duplicate code
// way to require Display and Clone here?
//#[derive(Display, Clone, Copy)]
pub trait Hoverable: Display + Clone + Copy {}

// Instruction ------------------------------------------------------------------------------------
#[derive(Debug, Clone)]
pub struct Instruction {
Expand Down Expand Up @@ -302,6 +296,9 @@ pub type NameToInstructionMap<'instruction> =

pub type NameToRegisterMap<'register> = HashMap<(Arch, &'register str), &'register Register>;

// Define a trait for types we display on Hover Requests so we can avoid some duplicate code
pub trait Hoverable: Display + Clone + Copy {}

#[derive(Debug, Clone, EnumString, AsRefStr)]
pub enum XMMMode {
SSE,
Expand Down

0 comments on commit 729236e

Please sign in to comment.