Skip to content

Commit

Permalink
improving code (thanks clippy)
Browse files Browse the repository at this point in the history
  • Loading branch information
snf committed Sep 10, 2015
1 parent 2d6ad5d commit 319bcd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assembler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ pub enum Arch {
}

impl Arch {
pub fn to_c(self) -> u32 {
match self {
pub fn to_c(&self) -> u32 {
match *self {
Arch::X86 => extern_def::x86,
Arch::X86_64 => extern_def::x86_64,
Arch::Mips => extern_def::mips,
Expand Down

0 comments on commit 319bcd0

Please sign in to comment.