Skip to content

Commit

Permalink
derive & borrow self
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed Oct 11, 2022
1 parent 30aa246 commit dc5d5bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/revm/src/instructions/opcode.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::gas;
use crate::SpecId;

#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub struct OpCode(u8);

pub const STOP: u8 = 0x00;
Expand Down Expand Up @@ -164,7 +165,7 @@ impl OpCode {
}

#[inline(always)]
pub const fn u8(self) -> u8 {
pub const fn u8(&self) -> u8 {
self.0
}
}
Expand Down

0 comments on commit dc5d5bd

Please sign in to comment.